Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
plainOldText
on June 2, 2014
|
parent
|
context
|
favorite
| on:
The Swift Programming Language
Swift has also pattern matching which I think is really awesome.
juliangamble
on June 2, 2014
|
next
[–]
You can see the pattern matching inspiration was from Clojure:
https://twitter.com/jckarter/status/473557476302802944
https://twitter.com/jasonyeojs/status/473562520930635776
AlexanderDhoore
on June 2, 2014
|
prev
|
next
[–]
This is its greatest feature if you ask me... Imperative, classical OO language WITH pattern matching. It's a crazy world we live in.
vladimirralev
on June 2, 2014
|
prev
[–]
Yes. They even have ranges in the patterns inside tuples. Not sure if any other language has that particular syntax.
MichaelGG
on June 2, 2014
|
parent
[–]
F# has that. And also allows you to define your own constructors to pattern match on anything you want.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: