# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #60868]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60868 >


>From Rakudo r33221:

$ perl6 -e'say [].min'
Use of uninitialized value

$ perl6 -e'say [].max'
Use of uninitialized value

<pmichaud> min of an empty list should be...?
<TimToady> +Inf
* masak files rakudobug
<TimToady> according to S03, if you consider it equiv to [min]()
<pmichaud> undef is what it returns now.
<pmichaud> and .min isn't constrained to be numeric, is it?
<TimToady> no, but +Inf isn't constrained to be numeric either, necessarily
<pmichaud> ah.  :-)

Reply via email to