in reply to Re^2: 0**0
in thread order of arguments evaluated
Perhaps I'm missing the point - could you elaborate further how that relates to Perl?
Think about 0**0. What should that value be? You can devise arguments that it could be either 0 or 1 (i.e. $anything**0==1 but 0*$anything==0)
0**0 (in perl) equals 0^0 (in exponent notation) equals 1
Any number computed to the exponent of 0 is 1. Perl behaves this way.
if (eval(0**0)){print "JAPH\n";}The math article noted would seem to support that assertion as well. While there are speculative comments to the contrary towards the beginning of the article, the citations noted in following instead support this idea again.
How is this ugly? It seems to be clearly defined. Is that the issue? Would you prefer to be able to configure it depending on the job? Is this like trying to ban guns to keep people from shooting themselves in the foot or are we offering them telescopic sighting mechanisms so they can shoot only the offending toe?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 0**0
by Anonymous Monk on May 31, 2005 at 20:50 UTC | |
|
Re^4: 0**0
by Anonymous Monk on Jun 02, 2005 at 16:38 UTC |