Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: Slice Madness

by Anonymous Monk
on Nov 10, 2005 at 00:08 UTC ( [id://507256]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Slice Madness
in thread Slice Madness

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

Replies are listed 'Best First'.
Re^4: Slice Madness
by Roy Johnson (Monsignor) on Nov 10, 2005 at 04:00 UTC
    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.

Log In?
Username:
Password:

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

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

    No recent polls found