Think of all the unnecessary m_ or other monikers that would be unnecessary if the answer, by standard, was “always”. Think of the lack of obscure errors in lambdas from value capture of “this” that would’ve be prevented by same. C++: the Faustian programming language.https://twitter.com/isocpp/status/1133816109063270400 …
-
Näytä tämä ketju
Vastauksena käyttäjälle @kurtismcc
Developing on/for Windows for so long, I didn’t realize ‘this’ was needed for accessing inherited members. Porting to Linux made me realize. Almost made me want to adopt an “always use ‘this’”, and even enforce it through static analysis somehow. Still torn about it.
12.56 - 29. toukok. 2019
0 vastausta
0 uudelleentwiittausta
1 tykkäys
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.