Re:Perl Cannot Be Parsed: A Formal Proof (2008)
by Vivtek on Sunday May 26, 2013 @08:31AM
(#5770933)
This perfectly encapsulates my feelings about the Perl parsing question!
An ambiguous parse is still a parse, and yeah, the 'whatever' example is pathologically unmaintainable code. As you say, if a static parser finds it ambiguous, you should probably fix it.
Re:Perl Cannot Be Parsed: A Formal Proof (2008)
by Vivtek on Sunday May 26, 2013 @01:01PM
(#5771614)
(Or mark it in some way, you know: "This is ambiguous, but it needs to be because _______" - because frankly, ambiguous parses are destined to be bug sources.)
An ambiguous parse is still a parse, and yeah, the 'whatever' example is pathologically unmaintainable code. As you say, if a static parser finds it ambiguous, you should probably fix it.