4 ms·
Swift has also pattern matching which I think is really awesome.
by plainOldText 12y ago
Swift has also pattern matching which I think is really awesome.
- vladimirralev 12y agoYes. They even have ranges in the patterns inside tuples. Not sure if any other language has that particular syntax.
- MichaelGG 12y agoF# has that. And also allows you to define your own constructors to pattern match on anything you want.
- AlexanderDhoore 12y agoThis is its greatest feature if you ask me... Imperative, classical OO language WITH pattern matching. It's a crazy world we live in.
- juliangamble 12y agoYou can see the pattern matching inspiration was from Clojure: https://twitter.com/jckarter/status/473557476302802944 https://twitter.com/jckarter/status/473557476302802944 https://twitter.com/jasonyeojs/status/473562520930635776 https://twitter.com/jasonyeojs/status/473562520930635776