On Sun Jul 03 12:27:51 2011, ronaldxs wrote: > In the spec here http://perlcabal.org/syn/S03.html#Comparison_semantics > at the bottom of the section it reads " a comparison naturally throws an > exception if either of its arguments is undefined".
Spec now says: > Note that, like most other operators, a comparison naturally returns > failure if either of its arguments is undefined, and the general > policy on unthrown exceptions is that the exception is thrown as soon > as you try to use the exception as a real value. Does that make this closable? > As discussed on IRC here that does not match implementation or > TimToady's current view of design: > http://irclog.perlgeek.de/perl6/2011-07-03#i_4051351 and > http://irclog.perlgeek.de/perl6/2011-07-03#i_4051461 . > > The current implementation does: > > 12:43 PhatEddy > perl6: my Int $x; if $x<=0 { say 'cmp OK' } > 12:43 p6eval > pugs, rakudo 72d158, niecza v7-11-g9ba8284: OUTPUT«cmp OK» > -- Will "Coke" Coleda
