Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How is the order important? Why couldn't Python have implemented:

    result = cond then expr1 else expr2
(Except that it's harder to read, which is why Python doesn't have that.)

IMNHSO, precisely for the reason you mention, that would be much more of a hack.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: