Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^4: A wholly inadequate reply to an Anonymous Monk

by bart (Canon)
on Apr 23, 2010 at 09:45 UTC ( #836485=note: print w/replies, xml ) Need Help??

in reply to Re^3: A wholly inadequate reply to an Anonymous Monk
in thread A wholly inadequate reply to an Anonymous Monk

Who else spots the logic error in here?
With an approach like use 5.10.0; and use feature, there's no logic error. You can both have Perl 5 compatibility and cleaner behaviour for new scripts.

Replies are listed 'Best First'.
Re^5: A wholly inadequate reply to an Anonymous Monk
by moritz (Cardinal) on Apr 23, 2010 at 10:27 UTC
    Yes, and you don't break backwards compatiblity. Which is what AnonMonk was talking about.

    If you use a menchanism like use $version or use feature there's no need to call it a major new version of perl. We already have these incremental language modifications in perl 5, which AnonMonk wished that Perl 6 would bring them.

    That said, perl 5.10 still breaks backwards compatibility in several ways (introducing new operators, changed scoping of regex modifiers), even though it was "only" a bump in the minor version number. Even if it were possible in theory to avoid that, it would be a huge maintenance burden to ship two regex engines with different scoping rules, which are then swapped depending on the presence of a pragma.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://836485]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2016-10-26 13:49 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (341 votes). Check out past polls.