3 ms·
I call this kind of answer “The C Answer”. “Who cares if this particular combination of code results in undefined behavior? Just don’t do it!” > when do these
by falcolas 7y ago
I call this kind of answer “The C Answer”. “Who cares if this particular combination of code results in undefined behavior? Just don’t do it!”
> when do these gotchas become an actual problem for you as a developer?
Whenever you have to deal with JSON produced by “not you”, or when you have to deal with JSON that may have been corrupted in some fashion along the way.
- erikpukinskis 7y agoI’m probably just not used to pure “all behavior is defined” systems, so I appreciate your perspective. What industry do you work in? I don’t see many systems like that in my industry. I work like hell to push things in that direction, but it’s a best case of “we went from 5% well defined behavior to 50%” after many years of effort.
- deleted 7y ago[deleted]