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

Re^2: Slice Madness

by Roy Johnson (Monsignor)
on Nov 09, 2005 at 23:02 UTC ( [id://507247]=note: print w/replies, xml ) Need Help??


in reply to Re: Slice Madness
in thread Slice Madness

Perl got where it is via evolution*. Evolution begets cruft. It strikes me as particularly ivory-tower-minded of people to wring their hands over these little throwbacks, particularly considering that Perl was never intended to be elegant. I trust you know where to find Ruby.

It's not like this thing is something that's constantly tripping people up and making Perl painful to use. It's more of a wart that adds some amusing character. Yes, it's a flaw. What is there to do about it? Break backward-compatibility? That would be a worse flaw. And that's why evolution begets cruft.

*You were thinking maybe intelligent design?


Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^3: Slice Madness
by Anonymous Monk on Nov 10, 2005 at 00:08 UTC
    You were thinking maybe intelligent design?

    Yup! Larry certainly designed most of Perl intelligently enough. In some ways, it makes the areas where he didn't more jarring, because they're unexpected, and thus confusing. And by the way, thanks, Larry! :-)

    It's a small nit, but the nits add up. The more of them we can clean up, the better.

    Yes, it's a flaw. What is there to do about it? Break backward-compatibility? That would be a worse flaw.

    Yup. It doesn't have to be a flaw: we can deprecate the feature, like we've done in the past.

    Just add a warning like: "$x .. $y better written as flip_flop($x,$y)" for flip flops. Put in an explanation that flip flops must be written explictly so that they're not confused with the range operator, and in a few years, we could remove the feature entirely.

    Remember, effort at development time is easy. Until the program is put in production, it can be changed without impacting end users. Effort at mainenance time is hard; any change to the program will have to be analysed for it's impact on the end users. Fixing bugs is easy; finding bugs is hard. Giving the users one less bug is worth it, IMHO.

    --
    Ytrew

      The thing is, it's not a bug. It's just a quirk. Something that could have been more beautiful if they'd thought of that. Like using ' instead of :: for package specs, and -> instead of . for dereferencing. Neither of which has gone away.

      BTW, I like the flip-flop operator, and I don't think a spelled-out function version is an improvement.


      Caution: Contents may have been coded under pressure.
Re^3: Slice Madness
by Anonymous Monk on Nov 09, 2005 at 23:18 UTC

    Ruby is much perfect as we Japaness are made for perfection. We are made to lead the world to its perfection even it means pain to our own nation and people.

      頑張って,よ!でも,日本語を習う場会はもう痛く過ぎます,ね。:-)
        ⠄⠱⠁⠞  ⠮  ⠓⠑⠇⠆⠖
      And on behalf of the rest of the world, I thank you. The perfection of the Japaness[sic] is a source of great delight.

      Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found