Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^7: Why Perl 6 is taking so !@#$ long

by shotgunefx (Parson)
on Feb 28, 2006 at 08:51 UTC ( [id://533287]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Why Perl 6 is taking so !@#$ long
in thread Why Perl 6 is taking so !@#$ long

Now that I'm happy to hear :)

One question thought, anyone know why they went with "err"? Just seems like it would clash with a lot of things and off the top of my head, doesn't seem very intuitive.

-Lee
"To be civilized is to deny one's nature."
  • Comment on Re^7: Why Perl 6 is taking so !@#$ long

Replies are listed 'Best First'.
Re: Why Perl 6 is taking so !@#$ long
by benizi (Hermit) on Feb 28, 2006 at 15:46 UTC
      Saw that note, (was pm'ed to me after my post). Funny, "dor" was the first thing that popped into my head too. (see above)

      -Lee
      "To be civilized is to deny one's nature."
Re^8: Why Perl 6 is taking so !@#$ long
by chromatic (Archbishop) on Feb 28, 2006 at 09:17 UTC

    What does intuition have to do with computers?

      Not sure if there is a little sarcasm in that message or not, but I'll assume there isn't.

      I would say it has nothing to do with computers, and much to do with programming languages, or at least Perl. Obviously, a large part of Perl's attraction is DWIM, which to me implies intuition, at least to a point.

      Not knowing that "err" is "defined OR", my first thought would be that it had something to do with exceptions. The definition of the word implies that it has something to do with errors.

      While expressions in programming languages and human languages often don't match up, they more often do. "do, if, else, and, or, etc, not, while, use, etc".

      Seems like it should have been more appropriately named defor, dor, whatever.


      -Lee
      "To be civilized is to deny one's nature."

        And maybe a defined or specifically for hashes, doh (which again is getting back into error-related-sounding-words territory :).

        Update: Not to be confused with D::oh, of course. :)

        Not knowing that "err" is "defined OR", my first thought would be that it had something to do with exceptions. The definition of the word implies that it has something to do with errors.

        It sounds like your intuition is working just fine to me. Isn't that how err will be used? Isn't that how or is used now? (And since or is slightly wrong, err is introduced to pay attention to definedness rather than truth)

        BTW, what does your intuition tell you about //? And why? Intuition comes from experience and is specific to the tool you're using. A C++ programmer would intuit that // introduces a comment. A Perl programmer has no such intuition. A Perl programmer might think it has something to do with the other doubled-character operators, &&, and || (or just be confused and have to look it up :).

      IMO a fair amount. You wouldn't want to name a routine that sums a list 'avg' would you? Naming something that has nothing to do with errors 'err' is IMO a bad plan. And clashes with expectations generated by other languages. (Such as VB which uses the err object for exception throwing.)

      I said all this on p5p at the time, but to no avail.

      ---
      $world=~s/war/peace/g

Log In?
Username:
Password:

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

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

    No recent polls found