3 ms·
> "should" this would make python a different language completely
by make3 9y ago
> "should"
this would make python a different language completely
- Spivak 9y agoI mean it would certainly be a breaking change to existing code, and we know how well that goes over in the Python community, but it wouldn't be a completely different language. The argument is that these objects are a sane default that would prevent a lot of accidental programming mistakes and I agree.
- vidarh 9y agoSee my comment elsewhere about a "split" approach to this for a Ruby implementation. I get that there's a semantic difference to change from __dict__ to the way __slots__ currently works, but it might be feasible to change the way __dict__ works to inline instance variables in the instance by default in cases where they're readily statically inferred and get much of the same effect without changing the semantics of __dict__.