News for hackers. Stuff that matters.

cshepp

Re:JavaScript Pattern Matching Proposal on Wednesday April 25, 2018 @04:35PM (#16925837)
Method-based syntax for pattern matching is easier to read and grok (IMO), but it lacks the dynamic capabilities of data-oriented syntax (in Kasai, patterns can be built/manipulated at runtime). It's interesting to compare the two approaches.
Re:JavaScript Pattern Matching Proposal on Wednesday April 25, 2018 @11:16AM (#16922258)
Pattern matching would be a great addition to JS. I built a pattern matching library[1] with a very similar syntax back in 2015 (although I will be the first to admit that it's a naive implementation). It makes validating/traversing deeply-nested objects much less verbose. I'm excited to see where this proposal goes.

[1] https://github.com/cshepp/Kasai

Re:Shrinkray: Lightweight alternative to Electron on Tuesday May 09, 2017 @10:58AM (#14300555)
I'm not sure that you can call this an "alternative" to Electron if it only supports macOS. I think the main selling point of Electron is the ability to build cross-platform GUI apps, which Shrinkray doesn't provide.