> Nor do I find charming the belligerent lack of any magical syntactic sugar for `self`. Does Python force you to pass it as an argument to make some kind of clever point? Are there psychotic devs out there who call it something other than `self`? Yuck!
If you weren't an ignoramous you would understand it can be something else, like klass.
dang|5 years ago
Please don't create accounts to break HN's guidelines with.
https://news.ycombinator.com/newsguidelines.html
gorgoiler|5 years ago
Ruby’s approach is the most delightful, I find. elf is an instance of Elf and in elf.health, self is the elf.
Elf is an instance of Class and in Elf.surpass, self is the Elf class itself.
rbanffy|5 years ago
staticautomatic|5 years ago