3 ms·
Nothing prevents anyone from creating a preprocessor that maps { to BEGIN and } to END.
by coliveira 2y ago
Nothing prevents anyone from creating a preprocessor that maps { to BEGIN and } to END.
- cxr 2y agoNothing prevents anyone from trying to eat spaghetti with a spoon. (Or from modifying the lexer to accept a different set of terminals, even.) > Kramer: "Yeah, well, I could do it. I don't wanna do it." > Jerry: "We didn't bet if you wanted to do it. We bet on if it would be done." > Kramer: "And― and it could be done." > Jerry: "Well of course it COULD be done. Anything COULD be done. But it's only is done if it's done! Show me the levels! The bet is the levels!" > Kramer: "I don't want the levels!" > Jerry: "That's the bet!" <https://www.youtube.com/watch?v=4CxIVvLaGKI https://www.youtube.com/watch?v=4CxIVvLaGKI>
- SSLy 2y agoSpaghetti is eaten with spoon and fork…
- windward 2y agoImpelementing the grammar is the easiest 0.1% of programming language dissemination. Adding explicit non-const to g++ would be so, so easy. But pointless.
- timbit42 2y agoDerivatives of Pascal such as Modula-2, Oberon, Lua, and Ada do not require BEGIN on IF, FOR, WHILE, LOOP or CASE statements, making the syntax much cleaner.