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
being sugar for
Since in that case, pattern matching on arguments is really just sugar for a case statement.
[ Parent
| on HN ]
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.