Hacker News new | ask | show | jobs
by pistoriusp 5016 days ago
CS 1.3.1:

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

1 comments

Yeah I know. It was just a quick example.

It's useful for something like:

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