On Wed, 18 Apr 2001 10:59:09 +0200, "Alex Martelli" <aleaxit at yahoo.com> wrote: >"Dave LeBlanc" <whisper at oz.net> wrote in message >news:9bji5k$417$0 at 216.39.170.247... >> Since self is used for every method of every class, isn't it a bit >> redundant? > >Not really. Explicit is better than implicit. > >> I don't know of another OO language that makes you manually >> carry around the "this"/"self" pointer/reference... > >Modula-3, for example (I believe 'self' is a reserved word >there; in Python, it's "just" a 'universal' convention). Almost universal. I was surprised at first to see some guy's def __add__(x,y): return something_involving(x,y); looked at first like he wasn't aware of this universal convention. Then I decided that in the sort of context where this was used his notation made a lot more sense. (And of course an implicit self makes less sense than anything here...)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4