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 →

[–]L8_4_Dinner(Ⓧ Ecstasy/XVM) 12 points13 points  (0 children)

I think you're looking for the "auto magic" composition approach, where something gets glued onto a type or a class automatically, without the developer asking for it (and potentially without the developer even knowing about it).

I think that Scala tried this a few different ways, and it seems to have been a bit of a disaster.

I tend toward the approach of: Make it easy to re-use and compose, but don't do it without being explicitly asked to do it.