News for hackers. Stuff that matters.
Re:Why Is the Migration to Python 3 Taking So Long? by dragonwriter on Thursday November 14, 2019 @01:37PM (#21538021)
I think for some people having the receiver as an explicit parameter of methods rather than references through a special syntactic variable bothers some people and makes it look to them like a procedural language playing OO, though I personally think it's the most clear representation of what every class-based OO language actually does operationally, since methods are attached to a class and take a reference to the instance on which they are invoked.
Re:Why Is the Migration to Python 3 Taking So Long? by AnimalMuppet on Thursday November 14, 2019 @04:48PM (#21539844)
It may in fact be what every class-based OO language actually does operationally. But having the OO language do that for you is, to me, one of the lines that separates them from "a procedural language playing OO".
Re:Why Is the Migration to Python 3 Taking So Long? by dragonwriter on Thursday November 14, 2019 @08:22PM (#21541426)
To me, it makes sense for a class-based OO language with first-class functions and (unlike, e.g., Java) available direct external access to data members to do what Python does because it reinforces the distinction between function members and methods.

Perhaps more importantly, it makes even more sense in a language like Python where classes are (unlike many, especially statically-typed, class-based OO languages) first class objects to do what Python does, because of the relation of methods to classes. It also, to me. makes unbound/bound methods slightly more intuitive.

Now, I too was initially thrown by it because I'd used a bunch of OO languages that did it the other way first, and for quite a long time.

Re:Why Is the Migration to Python 3 Taking So Long? by int_19h on Friday November 15, 2019 @03:19AM (#21543192)
How would you describe OO languages which only have multimethods, then? Say, Dylan?
Re:Why Is the Migration to Python 3 Taking So Long? by AnimalMuppet on Friday November 15, 2019 @08:31PM (#21550357)
Don't know enough to say.