5 ms·
If I remember correctly, this was not originally true but type unification happened early in the life of 2.x.
by CurtHagenlocher 6y ago
If I remember correctly, this was not originally true but type unification happened early in the life of 2.x.
- loeg 6y agoI don't know if it's related to C classes at all, but an interesting semi-related tidbit: 2.x has a weird distinction between "classic" classes and "new-style" classes that inherit from object. In 3.x, everything descends from object.
- dapids 6y agoC has classes?
- chc 6y agoPython has classes defined in C.
- Spivak 6y agoAnd “classes in C” is really just a matter of agreeing on a convention. GObject and COM are object systems that have C implementations. I suppose it’s a mental thing when you’re “below” the abstract object system instead of getting to treat them as tangible things unto themselves. Like how C doesn’t really have strings — they’re pointers or structs and so you don’t get any sort of encapsulation that’s not enforced by convention. You have to maintain the invariants or only use methods that maintain them.
- dapids 6y agoWow, it was a legitimate query, I wasn't sure what OP was referring to. Thanks for the downvotes.
- monkeybutton 6y agoObject, the root of all evil.