the sum of an undefined list ought to be an undefined value
The empty list is not undefined; it's very clearly defined: it's empty.
Speaking as a mathematician, of course the sum of an empty list is 0, but this is hardly the first nor the most important time I've encountered software that doesn't follow mathematical conventions. Regardless, the sum 0, @list fix is completely fine.
In reply to Re^2: List::Util::sum() and empty lists...
by kaif
in thread List::Util::sum() and empty lists...
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |