Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: Unparseability is A Good Thing

by ikegami (Pope)
on Aug 23, 2009 at 15:46 UTC ( #790674=note: print w/ replies, xml ) Need Help??

in reply to Re: Unparseability is A Good Thing
in thread Unparseability is A Good Thing

If we removed just subroutine prototypes rom the language the proof would not hold any more. So the question is is there a more general proof that does not rely on prototypes?


BEGIN { eval "sub foo {}" if rand() < 0.5; } foo 'x';
>perl -c syntax OK >perl -c String found where operator expected at line 5, near "foo 'x'" (Do you need to predeclare foo?) syntax error at line 5, near "foo 'x'" had compilation errors.

Execution is required to decide whether foo is a subroutine call or a bareword.

Comment on Re^2: Unparseability is A Good Thing
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://790674]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2015-12-02 05:03 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (34 votes), past polls