4 ms·
>In the C++ world I come from, the Spec is treated as being holy. That's ridiculous. >You don't write code that invokes undefined behavior or relies on unspec
by ywrkdl 15y ago
>In the C++ world I come from, the Spec is treated as being holy.
That's ridiculous.
>You don't write code that invokes undefined behavior or relies on unspecified behavior.
This happens all the time, and not only is code written that relies on unspecified behavior, vendors maintain backward compatibility for programs that do this.
http://www.joelonsoftware.com/articles/APIWar.html http://www.joelonsoftware.com/articles/APIWar.html
> If you do, you're on your own and no one will touch your code with a ten foot pole if they can help it.
Not really. If you do this and you're a huge success, you're the center of the universe. If you do this and no one notices, you're fucked.
- ComputerGuru 15y agoSoftware APIs are one thing, the C/C++ spec is another. The latter undergoes revision after revision through hundreds of publicly released drafts and after years and years of planning and experimentation. The former is subject to the whims and caprices of whomever's software you're using.