3 ms·
What would that look like then? How often is such code written? Obviously you can write it like that, my point is that it's not clear to me people actually are
by arp242 4y ago
What would that look like then? How often is such code written?
Obviously you can write it like that, my point is that it's not clear to me people actually are writing code like that. "If a footgun is never encountered then is it really a footgun?"
- tapirl 4y agoThis is not a problem about frequency. This is a problem about possible or not. Language design is a serious thing.
- arp242 4y agoEvery language makes it possible to do something potentially unexpected, which is also rather subjective because different people have different expectations. None of your examples are "broken" or exhibit inherently undesired behaviour. So it's very much about frequency: how often do people expect A? And how often do they expect B?
- tapirl 4y agoYour logic is so weird. Done here. :)