HNHacker News
TopNewBestAskShowJobs

cshepp

52 karma · joined November 26, 2012

submissionscomments
cshepp··on JavaScript Pattern Matching Proposal
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.
cshepp··on JavaScript Pattern Matching Proposal
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

cshepp··on Shrinkray: Lightweight alternative to Electron
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.