This project is read-only.

Could pattern matching eventually be implemented in TypeScript ?

Topics: General
Oct 26, 2012 at 8:03 PM


Been using it in Scala, and love it.

I find it (pattern matching) extremely useful, and would love to

have it in TypeSafe


Oct 29, 2012 at 6:26 PM

Thanks for the suggestion.

Nov 2, 2012 at 9:22 PM

This library implements pattern matching:

Perhaps you can figure out how to make it a bit more type safe.

Jan 24, 2013 at 7:10 PM

Pattern matching (like scala) and destructuring statements (as scala, coffeescript and livescript has) makes the code a joy to work with. Would be really nice to have in TypeScript.