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

CS 1.3.1:

"Conditional assignment of previously undefined variables a or= b is now considered a syntax error."



Yeah I know. It was just a quick example.

It's useful for something like:

  f = (options) ->
    options.foo or= 'bar'
    # ...




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

Search: