by Izkata · 2y ago · 0 comments
Perl code that is syntactically correct only on Fridays: https://news.ycombinator.com/item?id=30359309
(Has to do with how subroutine prototypes change how the code parsed where the subroutine is called)
This thing that is different from other languages is having a static lexer and parser, versus having a fynamic one. In Perl you modify it indirectly, and in Lisp you can modify it directly.
The fact that this happens has nothing to do with Perl's syntax complexity, but everything to do with dynamism in parsing.