Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Sorry, but my contention is that there almost certainly isn't code right now that depends upon this behaviour.

This is a problem that always plays when there is the suggestion to break backwards compatibility. It's easy to claim there isn't code right now that depends on this behaviour. It's a lot harder to prove that there isn't. Considering the years of Perl programming that have led to millions of lines of code, I'd be surprised if there isn't code that depends on it - whether is was programmed knowingly or not.

I can't believe that you, of all people, are suggesting that the rest of the world eshew a possible, advanced behaviour just because it is not one that you personally have ever thought to try, or because it is easily achieved by the combination of two simpler ones?
Where did you get this idea from? I just said that substr never surprised me, and stated the reasons why.

My reason to not favour this behaviour change have all to do with breaking backwards compatibility - not with personal experience. Now, I'm not against everything that breaks backwards compatibility - but if something breaks backwards compatibility one has to look at the advantages and the disadvantages. The latter means, how much code will break? Probably not much, but how much, we don't know. OTOH, the gain of the proposed change isn't too big either, it could also be archieved by breaking down one statement into two.

So, I'm not in favour because I think the possible gain of the change might not outweight the lost (breakage of code).

Abigail


In reply to Re: lvalue substring oddities by Abigail-II
in thread lvalue substring oddities by ysth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found