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

[perl #126715] Deprecate barewords?

Thread Previous | Thread Next
From:
Ed Avis via RT
Date:
November 23, 2015 18:01
Subject:
[perl #126715] Deprecate barewords?
Message ID:
rt-4.0.18-11191-1448301659-1826.126715-15-0@perl.org
>I'd say issue a deprecation warning once we have a schedule were the feature is removed, and replaced by something else.

I think in the case of barewords the replacement feature has been present in Perl for a while...

Instead of 

    print hello;

you should, in the new way of doing things, write

    print 'hello';

>Deprecation does not mean "I don't like the style, so other shall not use it".

Indeed not.  It may however be a case of: nobody whatsoever uses this style, and so it is not doing any good to keep it (while it does cruft up the language somewhat).  Hence this request.  To reiterate: I am *asking* whether anybody uses barewords.  If they are still used, then close this bug and keep them.


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=126715

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