News for hackers. Stuff that matters.
Re:Loop: a programming language for the JVM inspired by Hask... by Tyr42 on Tuesday May 29, 2012 @10:08PM (#4041006)
Well, he could be talking about

    reverse [] = []
    reverse (x:xs) = reverse xs ++ [x]
being sugar for

    reverse list = case list of
               []     -> []
               (x:xs) -> reverse xs ++ [x]
Since in that case, pattern matching on arguments is really just sugar for a case statement.
Re:Loop: a programming language for the JVM inspired by Hask... by Peaker on Wednesday May 30, 2012 @04:21AM (#4041906)
case is pattern-matching, though.

He said pattern-matching was sugar for "case/switch construct present in many, many languages". That implies pattern-matching adds only syntax to the game, and that it doesn't add any useful things beyond the "switch" you find in C or Java, for example.

Re:Loop: a programming language for the JVM inspired by Hask... by Tyr42 on Wednesday May 30, 2012 @01:17PM (#4043714)
I was looking for a forgiving interpretation of his statement. It's better to assume someone is right, and a little unclear, then just outright wrong.
Re:Loop: a programming language for the JVM inspired by Hask... by Peaker on Wednesday May 30, 2012 @04:56PM (#4044795)
Sure, and I'd do the same if he said it was just sugar over "case", but he explicitly said "case/switch found in many languages", which makes it pretty definite IMO.