Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What I really miss when doing "functional JS" is pattern matching. Is there any good solution for that?


You might try this one:

http://www.bramstein.com/projects/funcy/

It implements pattern matching in JS, with objects and closures. Not as convenient as first class support, but might be worth it.


That link is overloaded. Try this one:

https://github.com/bramstein/funcy



It looks great. Thanks for the link!


I also really miss pattern matching and I think that JavaScript would be well-served by it or even minimally some sort of destructuring.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: