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'
    # ...




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: