Coders seem to be unable to distinguish the concepts of a programming language from its syntax. One coder might argue for Python on the grounds that it has certain innovative language features, but another might “refute” this by arguing about the shortcomings of whitespace-based syntax. The two are talking about entirely separate things
(
Read more... )
Comments 4
I would argue that this is impossible unless you only allow syntax that is isomorphic to the AST.
In general, multiple pieces of syntax can map to the same bit of code; for example, in C you might have if (boolvar) dostuff(); or if (boolvar) {dostuff();} (presence or absence of braces around a single instruction); in Perl you might have $count++ if $a > 10 or if ($a > 10) { $count++; } (postfix conditional or block conditional... with optional semicolon in the latter case), etc. etc ( ... )
Reply
Reply
Reply
Reply
Leave a comment