3 ms·
I recently listened to a 2015 interview with David Ungar, of Self, Smalltalk, and misc fame. https://www.youtube.com/watch?v=8nfrC-YLYqc https://www.youtube.com
by specialist 6y ago
I recently listened to a 2015 interview with David Ungar, of Self, Smalltalk, and misc fame. https://www.youtube.com/watch?v=8nfrC-YLYqc https://www.youtube.com/watch?v=8nfrC-YLYqc
Amongst other gems was a nice reminder about Self's innovation in eliminating the 'self.' prefix (or equiv). It's in the name, right? Can't believe I forgot that.
I'm surprised no successor (to Self, Java, or both) has eliminated (disallowed) variable aliases. So that local and instance variables cannot have the same name. Voila. One category of errors completely eliminated.
--
Any and all use of 'this.' prefixes is a full stop hard omega fail. For both the language and any user of that language.
Whatever else I think of JavaScript, the lack of intrinsic identitiers (name?) should have immediately disqualified the language and prevented any further consideration.
Huge disappointment that TypeScript did not address this original sin. (Haha, nerd joke, I slay me.)
This OP gives example of this.method(...). What? Is that a C# thing? Why would anyone do that?
Oh well. Let's go back to arguing about dynamic vs static typing.