[Rd] Status of reserved keywords and builtins

2013-12-12 Thread Karl Millar
According to http://cran.r-project.org/doc/manuals/r-release/R-lang.html#Reserved-words if else repeat while function for in next break TRUE FALSE NULL Inf NaN NA NA_integer_ NA_real_ NA_complex_ NA_character_ ... ..1 ..2 etc. are all reserved keywords. However, in R 3.0.2 you can do t

Re: [Rd] Status of reserved keywords and builtins

2013-12-12 Thread Duncan Murdoch
On 12/12/2013 2:08 PM, Karl Millar wrote: According to http://cran.r-project.org/doc/manuals/r-release/R-lang.html#Reserved-words if else repeat while function for in next break TRUE FALSE NULL Inf NaN NA NA_integer_ NA_real_ NA_complex_ NA_character_ ... ..1 ..2 etc. are all reser

Re: [Rd] Status of reserved keywords and builtins

2013-12-12 Thread Duncan Murdoch
On 13-12-12 3:22 PM, Duncan Murdoch wrote: On 12/12/2013 2:08 PM, Karl Millar wrote: According to http://cran.r-project.org/doc/manuals/r-release/R-lang.html#Reserved-words if else repeat while function for in next break TRUE FALSE NULL Inf NaN NA NA_integer_ NA_real_ NA_complex_ N

Re: [Rd] Status of reserved keywords and builtins

2013-12-13 Thread Justin Talbot
> > It would have those benefits, but it would be harder to prototype > changes by actually replacing the `if` function. Implementations that > want to optimize the calls have other ways to do it, e.g. the sorts of > things the compiler does. > Does anyone actually prototype changes to the `if` f

Re: [Rd] Status of reserved keywords and builtins

2013-12-13 Thread Hadley Wickham
>> It would have those benefits, but it would be harder to prototype >> changes by actually replacing the `if` function. Implementations that >> want to optimize the calls have other ways to do it, e.g. the sorts of >> things the compiler does. >> > > Does anyone actually prototype changes to the

Re: [Rd] Status of reserved keywords and builtins

2013-12-13 Thread Duncan Murdoch
On 13-12-13 8:36 AM, Justin Talbot wrote: It would have those benefits, but it would be harder to prototype changes by actually replacing the `if` function. Implementations that want to optimize the calls have other ways to do it, e.g. the sorts of things the compiler does. Does anyone actua