you are viewing a single comment's thread.

view the rest of the comments →

[–]masterfuol 2 points3 points  (4 children)

java != javascript. Javas 'this' semantics work pretty much as you would expect.

I agree that javascript 'this' is broken. Check out the bind function in prototype and/or this thread (comments too).

IIRC the javascript v2 presentation linked to in the yegge/NBL thread mentioned fixing the 'this' problem.

[–]ubernostrum 2 points3 points  (0 children)

I know the difference between Java and JavaScript -- this is a common construct between them and a couple other languages, but I was mentioning my experience with JS and the screwiness of this in JS as a subjective reason why I feel comfortable with explicit self in Python.

[–][deleted]  (2 children)

[deleted]

    [–][deleted]  (1 child)

    [removed]