News for hackers. Stuff that matters.
Re:Green vs. Brown Programming Languages by dragonwriter on Saturday April 24, 2021 @08:48PM (#26929452)
> No reserved "this" or "self" keyword to declare methods means that every type will have its own single letter self variable which you have to look up every time.

Python lacks a reserved keyword for this use, and I can count the ones not using “self” in instance methods and “cls” in class methods that I’ve encountered on the fingers of my left foot.

But, yeah, weak convention plus no keyword promotes needless chaos.

There are no comments on this comment yet.