3 ms·
Because then you are relying on a specification that's not in the spec. A different interpretation means that your code no longer works. Therefore, you've effec
by steveklabnik 11y ago
Because then you are relying on a specification that's not in the spec. A different interpretation means that your code no longer works. Therefore, you've effectively created a new language.
- geocar 11y agoYou argue if GCC and MSVC document their current undefined behaviour, they are creating new languages?
- steveklabnik 11y agoNot if they document it. But if you write a program that relies on those behaviors, you don't have C anymore, you have "GCC-C" or "MSVC-C". I'm also not saying that's inherently a bad thing.
- geocar 11y agoThen we already have those languages: They exist because they are used. I'm not sure this is helpful though. We've accepted "literally" also means "not literally" without creating a new language.
- steveklabnik 11y agoYes, but that introduces some backwards incompatibility. The C standards body has a really, really high bar for doing so. English, not so much. That is a choice they're making.
- kenko 11y ago> I'm not sure this is helpful though. We've accepted "literally" also means "not literally" without creating a new language. http://waste.typepad.com/waste/2014/07/on-a-popular-misconception-concerning-literally.html http://waste.typepad.com/waste/2014/07/on-a-popular-misconce... It's just a figurative use of "literally". It's like saying "He's such a baby" of an immature (<- also figurative!) adult. You aren't saying that such an adult is actually a baby.
- scott_s 11y agoProgramming languages necessarily have stricter definitions and semantics than human languages.
- quotemstr 11y agoSixth grader students know all the words third grader students know, but third grade students do not know all the words that sixth grade students know. Are the third and sixth grade students speaking different languages?
- steveklabnik 11y agoIn a certain sense, yes. Sixth graders can say things that third graders cannot understand. The trick is to try to bring together all of these dialects in a way that everyone can in fact understand. This is why writing language specifications is _hard_. And even afterwards, you can still choose a dialect over the standard. You'll just lose a certain segment of your audience. That may or may not matter for your purposes.