develooper Front page | perl.perl5.porters | Postings from May 2016

Re: [perl #128241] Deprecate /$empty_string/

Thread Previous | Thread Next
From:
Smylers
Date:
May 27, 2016 08:43
Subject:
Re: [perl #128241] Deprecate /$empty_string/
Message ID:
20160527084330.GB2036@stripey.com
Aristotle Pagaltzis writes:

> Personally:
> 
> • I agree /$empty/ should be deprecated.
> 
> • I oppose changing its behaviour without a deprecation cycle.

“Warning: We've found a bug in your code. Please fix it now, otherwise a
future version of Perl will automatically fix it for you.”

>   At that point, the special case is so well circumscribed that I see
>   no real gain in excising [use of literal //] entirely, however
>   ancient-Unix-warty it may be.

Would it have advantages for users of the identically spelt //
defined-or operator? Specifically, are there circumstances where
somebody who makes a mistake while trying to use defined-or could get an
error message but at the moment gets mysterious repeat-match behaviour?
Or does get an error message, but a suboptimal one?

Smylers
-- 
http://twitter.com/Smylers2

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