Skip to content
Prev 350057 / 398506 Next

"function" as variable name - probably better error message

Actually, to split a few hairs, I think the documentation is essentially correct. 

Reserved words are not the same as quoted strings. You cannot use them in syntactically the same way that you usually use variable names, as unquoted strings in expressions. They can BE variable names, or more precisely: object names. In fact they often are; you get in deep trouble if you redefine  `for`, `function`, or `if` -- as functions, at least. That goes for things like `{` too, by the way.

-pd
On 16 Apr 2015, at 13:38 , Duncan Murdoch <murdoch.duncan at gmail.com> wrote: