← Back to context

Comment by FpUser

3 years ago

>"1. it can be always replaced with composition, which Rust already supports"

This is no argument from my point of view. Everything can be replaces with simpler things. We are not going back to assembly however except very few cases.

"2. it comes with a non-negligible complexity cost to the language (e.g. what if you do multiple inheritance, what code gets called at object construction etc)"

Every feature has complexity costs and I prefer to have options here. It should be me who decides what I am willing to trade and what for.

>"Especially you don't want to have different mechanisms for achieving the same thing."

They're not exactly the same thing and actually this is exactly what I want. I am very averse of super opinionating "my way or highway" type of things. Oh and btw from a glance Rust seems to have different mechanisms for the same thing too, for example with all those option / unwrapping / question mark.

The question was asked about "by what authority". Your arguments are just an opinion not any better than mine.