"Giuliano Procida" <giuliano.procida@xxxxxxxxxxxxxx> writes:
> Joost Diepenmaat wrote:
>> Just FYI, prototypes on anonymous subs are useless. As in; discarded by
>> the perl interpreter. I'm actually surprised it's even valid syntax.
> We are getting off-topic here but I disagree. It is useful to the
> programmer or maintainer to see the argument structure at a glance
> (especially when writing a lot of functional-style code). [ snip ]
Except that that's not what (most) prototypes do in perl. At least not
when they're actually used by the compiler. If they're discarded you can
of course use them for whatever documentation you like, but you'd still
be confusing readers who think you to expected them to "work".
Just in case:
>> Also, I would strongly recommend cperl-mode (which in fact does
>> recognize the construct) instead of perl-mode.
> I have found cperl-mode's defaults rather unpleasant and I don't want
> to spend ages customising it to my taste (i.e., make it look like
> perl-mode). I just use perl-mode and I will be happy if I can fix the
> few issues I have with it.
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/