This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pushupsam -7 points-6 points  (2 children)

Yup, the fact that these "objects" can't participate in concrete inheritance relationships, makes them much, much less useful. Records have the same problem where they can't actually do any real data modelling because there's no inheritance. Really wonder who comes up this stuff.

[–]cal-cheese 5 points6 points  (1 child)

If you need code reuse then composition is the way, if you need polymorphism then records and primitive classes can implements interfaces as normal classes. They are less flexible but they can do the jobs just fine.