From: Michael G Schwern [EMAIL PROTECTED]
> This came up at YAPC::Europe. Someone [1] wanted to know if 1/0
> would produce a divide by zero error in Perl 6, or if it would
> return a value representing an indeterminate result (undef?)
> It would make more sense for Perl, upon being given a simple bit
> of impossible math, to return undef (like other functions do on
> failure) than to generate an error. The error seems a throwback
> to earlier days of hardwired calculators.
The problem with returning undef is that undef numifies to zero. It would
make more sense if either 1/0 returned NaN, if Perl6 has NaN, or throw an
error, which Larry has indicated will be a concept in Perl6.
There once was a man from NaNtucket
Who kept all his bits in a bucket
He said "I'm a hero!
I divided by zero!
and the bits in the bucket, they tuckit!"
-Miko
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .