wr
hn
Top
New
Best
Ask
Show
Jobs
Back
c
cshepp
Joined 14 years ago
Karma
52
Submissions
3
Member since
Nov 26
View on Hacker News
Recent submissions
Comment · 8 years ago
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.
Comment · 8 years ago
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
Comment · 9 years ago
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.