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

    (if (> x 2)
        (do-this when-true)
      (also-do-this when-true))
In some other language:

    x > 2 ? doThis(whenTrue) : alsoDoThisWhenTrue();
Same problem. Maybe even slightly worse. For example it could be:

    x > 2 ? doThis(whenTrue) ; alsoDoThisWhenTrue();
To spot the difference between a colon and the semicolon: tough.


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

Search: