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

> The redirect is an assignment. In no language has a variable assignment ever stopped execution.

Many languages support property assignment semantics which are defined in terms of a method invocation. In these languages, the method invoked can stop program execution if the runtime environment allows it to do so.

For example, source which is defined thusly:

  foo.bar = someValue
Is evaluated as the equivalent of:

  foo.setBar (someValue)




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

Search: