Classes with inheritance and virtual methods: damned if your language has them, damned if your language doesn't.
-
-
That whole thing seems to be "Wait a second, this isn't C++. I was expecting C++, only safe." Right, no, this is not that language, it's a functional language built to do without a garbage collector.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I've gotten a lot of mileage out of macros that delegate trait implementations as well.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
A question I think most languages should consider: what is the migration path? Java, for instance, makes it easy to migrate enums to subtype polymorphisms. Would be great to see languages do other migration paths too.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Given that it's usually adviced that more than 5 layers of inheritance is bad I think just using ADTs and traits/typeclasses are just fine.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I'd actually conjecture that any hierarchy can be rewritten using composition into something better
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.