in reply to Re: Why does eof have a prototype?
in thread Why does eof have a prototype?
> IMHO the first sentence doesn't apply here because eof's syntax can be expressed by a prototype
Depends how you define "syntax can be expressed by a prototype".
A "can be parsed without errors" criteria is not enough for me.
eof(); and eof; are (magically) different syntax for eof, and this difference can't be expressed with prototypes.
In the past the prototype symbol set was extended with *, + or _ in order to add prototypes to other built-ins.
This criteria isn't met here.
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|Replies are listed 'Best First'.|
Re^3: Why does eof have a prototype?
by haukex (Archbishop) on Aug 07, 2022 at 21:33 UTC
by LanX (Sage) on Aug 07, 2022 at 21:49 UTC
In Section Seekers of Perl Wisdom