Re:Toward Go 2
by herrschnapps on Thursday July 13, 2017 @04:36PM
(#14764951)
It's just become a Stage 0 proposal: https://github.com/tc39/proposal-pattern-matching
Re:Toward Go 2
by seanmcdirmid on Thursday July 13, 2017 @08:18PM
(#14766467)
Woo hoo, can't wait. Especially with what TypeScript can do with this.
Re:Toward Go 2
by _old_dude_ on Thursday July 13, 2017 @06:02PM
(#14765689)
There is a paper, Pizza into Java: Translating theory into practice, from Odersky and Wadler at POPL 97 about how to mix generics, lambda and pattern matching in a Java like language.
C# and Java are slowly catching up :)
There are good reasons to use C#, so when it gets a new feature that other languages have had for years, well, it is newsworthy.
Now when will javascript get pattern matching?