3 ms·
I'ver never understood how the "this" thing actually brings possibilities. If anything, it introduces unnecessary confusion about scoping/binding. Python and Ru
by VeejayRampay 14y ago
I'ver never understood how the "this" thing actually brings possibilities. If anything, it introduces unnecessary confusion about scoping/binding. Python and Ruby don't have "this" and do just fine.
- batista 14y agoWell, Python has "self", that you have to explicitly pass. Not the best example.
- lucian1900 14y agoBut Python's methods already have self curried in. Class.foo(self, x) takes two arguments, but instance.foo(x) already has self bound, and only takes on argument. This lets you do bar = instance.foo; bar(x) and it'll still work. Much more consistent.