Speed
And consistency.
Consider code like
for (1..10) { # some statements # grammar modification here }
If compile time and run time modification were not separated, the head of the loop would be once parsed without the grammar modifications, and then reparsed with grammar modifications - a nightmare for readability and debugging.
In reply to Re^4: Perl 6 and Perl 5 parsing
by moritz
in thread Perl 6 and Perl 5 parsing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |