On 31 May 2007, at 06:35, Robert Dober wrote:
> But maybe things should really by simple
>
> return if x > 42
> return unless (x+1)%2 == 0 # not zero? here
>
> could probably made syntactically work (differently than now) and
> return the LHS of the expression iff the expression evaluates to true
> or false respectively.

Unfortunately this would greatly complicate the situation in which a  
return without value is intended...


Ellie

Eleanor McHugh
Games With Brains
----
raise ArgumentError unless @reality.responds_to? :reason