▲ | adastra22 4 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||
> No, that's not sufficient if done naively as I think you're describing. You seem to be missing the context of this discussion as described by the article. Other code already depends on the current compiled abstraction, and you want to extend it in various ways, safely, so that existing code continues to work without recompilation, but you can extend the abstraction that code is already safely handling with new types and new operations without modifying the original source code. That is exactly what a new trait would accomplish. I remain confused as to the distinction you are making. | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | naasking 4 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Read the Haskell-specific follow-up which I mentioned, type classes have a correspondance with traits so the problems with this approach are the same: https://eli.thegreenplace.net/2018/more-thoughts-on-the-expr... | ||||||||||||||||||||||||||||||||||||||||||||||||||
|