News for hackers. Stuff that matters.
Re:What’s New in ES2019 by Gene_Parmesan on Tuesday July 30, 2019 @10:47AM (#20565279)
I adore pattern matching when done well, but I'm sorry -- that syntax seems terrible and confusing. The use of `{ }` seems arbitrary. In JS braces are already used for both scope-delimiting and object literal notation; now they're going to have a third job? There has to be a better way.

I understand it's based on destructuring; the syntax still just doesn't work for me.

Re:What’s New in ES2019 by hajile on Tuesday July 30, 2019 @12:29PM (#20566444)
Ocaml, StandardML, F#, Erlang, and Rust all use that syntax for pattern matching. What other syntax would you propose to test values in a JS object?