|
|
Why No Perl Beautifiers up to 1998?
Why No Perl Beautifiers up to 1998?
1. Perl's unusually flexible syntax (TMTOWTDI
outgrowth) makes accurate parsing difficult
-
Parsing:
breaking down source code into meaningful parts, identifying their functions,
and their syntactic relationships
2. Widespread belief that accurate parsing is
required
for beautification
-
this is a misconception
-
rudimentary parsing can be good enough for "Basic Beautification"
-
e.g., pbeaut can treat
File-globs and Input Operators identically
-
e.g., <*.txt> vs.
<STDIN>
-
so it needn't be able to differentiate them!
© 2001 Consultix
consultix-inc.com
|