News for hackers. Stuff that matters.
Re:Introducing Sugarless - A Functional & Context Oriented w... by mjijackson on Wednesday December 21, 2011 @12:49PM (#3378354)
tl;dr: If you think that

  var output = Sugarless(input)(
     sanitize          
   , trim             
   , truncate, "", 200   
  );
is more readable than

  var output = truncate(trim(sanitize(input)), 200)
than you may be interested in Sugarless. Call me old school, but I prefer the latter.
Re:Introducing Sugarless - A Functional & Context Oriented w... by switz on Wednesday December 21, 2011 @12:51PM (#3378367)
Yeah, that looks confusing as heck.

Also, if I can't tell the difference between a comma and a period on your _improved language syntax_ homepage, then you're doing something wrong.

Re:Introducing Sugarless - A Functional & Context Oriented w... by seliopou on Wednesday December 21, 2011 @01:54PM (#3378608)
What about something like this:

  fn = compose(truncate.flip().curry(20), trim, sanitize);
  output = fn(input);
Better or worse?
Re:Introducing Sugarless - A Functional & Context Oriented w... by DougBTX on Wednesday December 21, 2011 @05:08PM (#3379368)
Better, since it is clear how to pass a function as an argument.