Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

All the major OOP/FP I know support matching on objects. It is indeed a very powerful feature. See active patterns and extractors.


You must mean Scala and F#, which I haven't used. Haven't seen this feature in OCaml or Clojure.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: