NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Cue the Mathematicians! (Score:2)
It boils down to a design decision. Guido and Matz decided that if you want integer division, you get integer division. Larry took a DWIM approach.
As a guy who doesn't care one way or the other really, I think Perl's approach is better for simple cases, and worse as you get into more complex operations.
Re: (Score:1)
It boils down to a design decision. Guido and Matz decided that if you want integer division, you get integer division. Larry took a DWIM approach.
You're begging the question! Yes, they made this decision. Why?
As a guy who doesn't care one way or the other really, I think Perl's approach is better for simple cases, and worse as you get into more complex operations. Obviously there are times when you don't want that behavior, which is why Perl offers the Integer() function (which I do see from time to time).
rjbs
Re:Cue the Mathematicians! (Score:2)
I guess I'm asking what Perl's philosophy is on this issue. Is it merely trying to be useful vs correct? Or does Larry view the current behavior as correct? I'm pretty sure Matz has discussed this issue directly before, but I can't find a link atm. I suspect it has more to do with internals than philsophy. I suspect the opposite is true in Guido's case.
Oh, and one thing I forgot to mention:
:-DReply to This
Parent