News for hackers. Stuff that matters.
Re:Pun: A small library to enable pattern matching in JavaSc... by jlongster on Sunday August 03, 2014 @12:11AM (#8126996)
Very cool! You might also want to check out sparkler, which uses macros to let you do this with a little better syntax: https://github.com/natefaubion/sparkler
Re:Pun: A small library to enable pattern matching in JavaSc... by unignorant on Sunday August 03, 2014 @11:29AM (#8128163)
I'd heard of sparkler, but my impression was that macros prevent it from working with CoffeeScript.

There's also matches.js, which is the deprecated precursor to sparkler: https://github.com/natefaubion/matches.js