hey is there an etymological reason or history for the proglangs that use `this` vs the ones that use `self` similar question, is there any `this`-lang that *requires* it to be an explicit item rather than an implicit, in signatures and/or statements?
-
-
Vastauksena käyttäjille @myrrlyn ja @whitequark
I have absolutely no historical basis for this, but my argument would be that if you're modeling discrete systems, or discrete objects, via classes, then a car or a house doesn't really have a sense of self, but it is "this".
1 vastaus 0 uudelleentwiittausta 4 tykkäystä -
Vastauksena käyttäjille @TheMogMiner ja @whitequark
i don't know if a language before smalltalk used it but my (also weak and ahistorical) guess is that languages that focus on message exchange favor `self` for the same reason. idk
1 vastaus 0 uudelleentwiittausta 8 tykkäystä
Vastauksena käyttäjille @myrrlyn ja @whitequark
As I understand it, given the more "human" oriented design underpinning Smalltalk (and before it, Simula), the whole "self" concept does make some sense, ye
6.45 - 22. jouluk. 2020
0 vastausta
0 uudelleentwiittausta
2 tykkäystä
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.