Re:Perl 5.26.0 released
by falsedan on Thursday June 01, 2017 @10:20AM
(#14460428)
Which python module lets me declare object methods like:
? Because I get tired of all those selfs
[ Parent
| on HN ]
There isn't one, because "explicit is better than implicit". Personally I've always found that Java's optional-self syntax to be incredibly confusing when reading code.
You could try to monkeypatch it by creating a decorator that will mess around with the closures of methods to make it work, but I don't understand _why_ you would want to do that.
β¦is the answer 'the downvotes module'?
Downvoters: ok I get it: never post anything that's not a glowing recommendation of Python or an attempt to learn more about available modules/distributions.
Complaining about downvotes won't get you any praise in this community. It comes off as whining and is against the guidelines:
> Please resist commenting about being downvoted. It never does any good, and it makes boring reading.