ternary operator

Chad Netzer cnetzer at mail.arc.nasa.gov
Fri Feb 7 02:44:24 CET 2003


On Thu, 2003-02-06 at 17:19, Mike Meyer wrote:

> Hey, that's what we need to make the people who want an assignment
> operator happy! Block expressions.
> 
> Proposed syntax:
> 
> block:
>         <statements>
>         expression
> 
> and the value of the block is the value of the last expression in the
> block.

Welcome to Ruby.

-- 
Bay Area Python Interest Group - http://www.baypiggies.net/

Chad Netzer
(any opinion expressed is my own and not NASA's or my employer's)







More information about the Python-list mailing list