develooper Front page | perl.perl5.porters | Postings from November 2015

Re: [perl #126715] Deprecate barewords?

Thread Previous | Thread Next
Aristotle Pagaltzis
November 23, 2015 15:32
Re: [perl #126715] Deprecate barewords?
Message ID:
* Ed Avis <> [2015-11-23 15:05]:
> perhaps they could start to trigger a deprecation warning?

As often disagree as I with you – this might actually be reasonable.

I can’t remember seeing them used on purpose (outside of poetry, as you
mentioned) and have never done so myself.

This seems a useful way to reduce the fraction of /dev/urandom output
that constitutes valid Perl.

Of course this would first go on a branch and get a full CPAN smoke etc
etc. I have no idea if it’s actually feasible in practice to deprecate
unquoted bareword strings. But I would be very curious to at least see
what happens if we pull on that string. After that, we could see.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About