Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

by shotgunefx (Parson)
on Feb 28, 2006 at 15:43 UTC ( #533390=note: print w/replies, xml ) Need Help??

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

Something being undefined is not necessarily an error. More along the lines of false, not wrong IMHO.

I think // is a bit different. I did come from a C/C++ background and it's use made it fairly obvious that it wasn't a comment. Err binds a bit tighter in the way that most people think.The fact that 69 distributions on CPAN currently define a sub named err should say something.

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

Replies are listed 'Best First'.
Re^12: Why Perl 6 is taking so !@#$ long
by duff (Vicar) on Feb 28, 2006 at 15:48 UTC

    Many routines in the perl world return undef to designate a failure of some sort. This usage is not false in the sense of "opposite of true", but it is exceptional.

    The fact that 69 distributions on CPAN currently define a sub named err should say something.
    Yeah! That there's need of some standardization. Perl6ism to the rescue! ;-)

    update: BTW, read the Read or Die section of Exegesis4.

      I've been on perlmonks for just about five years now and this is probably my most uncouth post.

      My opinion is that "err" is a plain stupid and counterintuitive name for what it does. It doesn't make any sense.

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

      Sigh. Yeah. Too bad. Its still a crappy name, even if it does look cute in a couple of contexts.

      I had a quick look through my code for defined, and very few of the uses were from function returns (or is almost always satisfactory for that case). Instead the majority were stuff like this:

      $x = $default unless defined $x;

      Since i doubt im unusual in this respect quite frankly I think Larry made the wrong call on this. And given that 69 distributions (including iirc DBI) use 'err' I think this is just bad plan. Why should Perl6's poor choice of a name have to negatively impact 69 CPAN distributions distributions of Perl5 code? IMO for no reason other than whimsy.

      And if I understand this correctly (its quite possible I dont), the only reason 5.8 hasn't had the 'dor' patch (funny how its called that) is because of this potential breakage. So thousands of programmers have been unable to use something that would go a long way to making things easier because Larry decided one day that 'err' sounded like a slurred 'or' and decided that in Perl6 this is what it would be called. And of course Perl5 can't name it 'dor' because that would contradict Perl6.

      Which just leaves me going 'ARGHHHHH!'


        It still doesn't negatively impact those 69 distributions. Perl's new err keyword is only active if you've enabled it with the feature pragma. It's still a dumb name. It just doesn't break stuff unless you ask it to.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://533390]
[1nickt]: choroba I agree
[choroba]: Playing in a punk rock band for 20 years... my hearing is quite bad
[Corion]: I still have hopes to turn my godson and his two siblings into a punk band ;)
[Corion]: Their older sister just started piano but has been interested in drumming, which she should be able to start with 8 years or so)
[Discipulus]: ah was Kink of Bongo 1992..
[1nickt]: choroba name of band? youtube link? MySpace link?
[Your Mother]: I like Manu Chao.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2017-03-24 12:21 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.