Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

'self' and 'this'

Name: Mature Related !K/L9IJgMJY 2010-06-09 22:49

Whats your opinion on "self" or "this" in the programming languages. I think it is retarted.

you always see people doing stuff like this (in psudeo-py):

class blah
     def bloo(self, x, y)
          self.x = x
          self.y = y
               pass

when it could be:

class blah
     def bloo (x, y)
         pass


picture unrelated; this is a text board.

Name: Anonymous 2010-06-09 23:00

Whats ... retarted ... psudeo
y ... w ... p
In addition to this, you did not use [code] tags, and with a tiny bit more effort your posted code could have been genuine Python.
Finally, your question is a poor one: it doesn't apply to all languages, so you should be specifying which languages you want to discuss; and if you meant FIOC, specifically, the code you posted shows that you don't actually understand the issue.

In conclusion, {expert1 back to wherever, please.}


1 Traditionally, expert is defined as b.i.o.u, whereas the back to /α/ (for some α) usually uses m.o.u or m.i.o.u, so interpret this expression as you will.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List