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

Re: [perl #126715] Deprecate barewords?

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
November 23, 2015 15:32
Subject:
Re: [perl #126715] Deprecate barewords?
Message ID:
20151123153211.GA76838@plasmasturm.org
* Ed Avis <perlbug-followup@perl.org> [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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About