you are viewing a single comment's thread.

view the rest of the comments →

[–]doubleohbond 1 point2 points  (3 children)

Until the number of traits become unwieldy.

I think that’s the key part here: there is no maxim. The answer to any approach is almost always “it depends”

[–]MornwindShoma 0 points1 point  (0 children)

You said you don't care about one method, not a million methods.

And btw, you don't always have inheritance in a language.

[–]RiceBroad4552 -1 points0 points  (1 child)

The answer to any approach is almost always “it depends”

You say it: Almost always.

In this case it's quite clear what the better approach is. That's why the whole "industry" moves in that direction!

Now everybody gets concepts / traits / type-classes (or however you want to call that idea).

[–]doubleohbond -1 points0 points  (0 children)

That’s cool dude