4 ms·
All the major OOP/FP I know support matching on objects. It is indeed a very powerful feature. See active patterns and extractors.
by Dn_Ab 14y ago
All the major OOP/FP I know support matching on objects. It is indeed a very powerful feature. See active patterns and extractors.
- fusiongyro 14y agoYou must mean Scala and F#, which I haven't used. Haven't seen this feature in OCaml or Clojure.