News for hackers. Stuff that matters.
Re:Welcome to C# 9.0 by throwaway894345 on Wednesday May 20, 2020 @03:38PM (#23250854)
Go has a similar feature, and while I don't know that I would say it's especially controversial or frowned upon, it's good form to only use it sparingly if at all. I still wouldn't say that it is anywhere near as fragile as inheritance; however--I think inheritance's fragility comes from its polymorphism (not sure about Kotlin, but in Go, the wrapper class/struct can't be passed into a function that expects the component's type).

There are no comments on this comment yet.