4 ms·
> rather than pure undefined behavior Even better (someone please correct me if necessary) why isn't the very concept of "undefined behavior" completely remove
by klez 8y ago
> rather than pure undefined behavior
Even better (someone please correct me if necessary) why isn't the very concept of "undefined behavior" completely removed? What good does it accomplish in a language?
- bitofhope 8y agoAllows the compiler to assume certain cases where undefined behavior would appear are unreachable and make optimizations based on trusting that those cases will not occur.