News for hackers. Stuff that matters.
Re:Try OCaml by jaaames on Friday September 07, 2018 @10:55AM (#17934705)
I believe there was/is a stage 0 proposal for pattern matching in ECMAScript
Re:Try OCaml by k__ on Friday September 07, 2018 @11:06AM (#17934804)
Stage 1 and yes, this one simply uses destructuring.

But it could use JavaScripts own types.

But it couldn't use TypeScripts types.