Re:Show HN: Matches.js -- Powerful Pattern Matching for Java...
by natefaubion on Thursday September 13, 2012 @03:47PM
(#4518175)
It meshes pretty well as is. If only I could get rid of the strings and redundant arguments.
It shares a lot of the same splat/rest/destructuring syntax.
[ Parent
| on HN ]
Re:Show HN: Matches.js -- Powerful Pattern Matching for Java...
by oscilloscope on Thursday September 13, 2012 @04:57PM
(#4518564)
Check out LiveScript's implicit switch syntax:
Re:Show HN: Matches.js -- Powerful Pattern Matching for Java...
by natefaubion on Thursday September 13, 2012 @05:11PM
(#4518646)
That's along similar lines, but more like guards in Haskell:
http://en.wikibooks.org/wiki/Haskell/Control_structures