-
Notifications
You must be signed in to change notification settings - Fork 577
incompatible change in number literals since v5.32 #22040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From perl-5.32.0 perldelta documentation:
That is, the "bug" was deemed to be in perl-5.30.0. I've always felt that decision to be an opportunity missed, but it would have required changes to |
backward-compatibility is a gem which perl could use to it's advantage. I'm not talking about CPAN libraries, I'm talking about tons of legacy codebase no one will pay for non-business driven modifications - it works, so don't touch it. Should Perl introduce such small changes (or larger like that upcoming implicit builtins) ... it's often cheaper to use different language to write things from scratch then fix old code. |
@happy-barney, a code example that demonstrates the issue might allow me to understand |
|
I've done a
@tonycoz, do we want to revert to the previous behaviour ? .... or do we document the change ? |
if document change, then it will be nice to wrap it into (pseudocode):
|
I don't think we'd revert to the previous behaviour exactly, which allowed I could see it accepting
The change here was reported as a new diagnostic in perl5320delta:
|
Is this closable? |
I think it is closable, but I'd like @tonycoz to approve its closing. |
It depends on whether we want to support I don't think so, but I've been wrong before. |
@tonycoz IMHO these three should not be supported (or should be defined as But values like:
are IMHO more readable than
|
The behaviour of these hasn't changed anytime recently:
|
Before v5.32 Perl accepted hex / binary zeroes in form
0x_
/0b_
.v5.32 doesn't anymore.
As far as change is not listed as incompatible change it means its a bug.
The text was updated successfully, but these errors were encountered: