4 ms·
The risk analysis argument makes sense from a language-usage perspective. I think there's a language design argument we can make as well: 1) if your language p
by caditinpiscinam 5y ago
The risk analysis argument makes sense from a language-usage perspective. I think there's a language design argument we can make as well:
1) if your language papers over a syntax error, then that error is effectively just an alternative syntax
2) alternative syntaxes make a language more complex
3) complex languages take more work to implement and more work to learn
- DonHopkins 5y agoPHP has entered the chat.
- goto11 5y agoThis is what happened with HTML. At first the syntax was pretty simple, but the error-correcting parsing meant that invalid syntax became widespread. In order to ensure compatibility between implementations the spec ended up having to specify the exact parsing of any form of incorrect HTML also. Now the parsing algorithm of HTML is incredibly complex: https://html.spec.whatwg.org/multipage/parsing.html https://html.spec.whatwg.org/multipage/parsing.html