5 ms·
> Undefined behavior means the language provides no guarantees about the outcome. No, not "the language", but "the standard". Languages like Python or Rust th
by otabdeveloper4 4y ago
> Undefined behavior means the language provides no guarantees about the outcome.
No, not "the language", but "the standard".
Languages like Python or Rust that don't have standards are 100 percent undefined behavior.
If you're really worried about this, then just code against x86_64 clang and not ISO C++ and forget about this non-problem forever.
- preseinger 4y agos/language/language as defined by the specification that also defines the concept of undefined behavior/
- otabdeveloper4 4y agoLike I said, Rust and Python have no specification at all, so technically any program written in them is undefined behavior, depending on the particular interpreter/compiler binaries you use and your architecture.
- preseinger 4y agoundefined behavior is not the absence of a spec, it's a specific condition that specs define