Re: [Rd] Where does L come from?

2018-08-25 Thread Hervé Pagès
On 08/25/2018 04:33 PM, Duncan Murdoch wrote: On 25/08/2018 4:49 PM, Hervé Pagès wrote: The choice of the L suffix in R to mean "R integer type", which is mapped to the "int" type at the C level, and NOT to the "long int" type, is really unfortunate as it seems to be misleading and confusing a l

Re: [Rd] Where does L come from?

2018-08-25 Thread Hervé Pagès
On 08/25/2018 02:23 PM, Dirk Eddelbuettel wrote: On 25 August 2018 at 13:49, Hervé Pagès wrote: | The choice of the L suffix in R to mean "R integer type", which | is mapped to the "int" type at the C level, and NOT to the "long int" | type, is really unfortunate as it seems to be misleading

Re: [Rd] Where does L come from?

2018-08-25 Thread Duncan Murdoch
On 25/08/2018 4:49 PM, Hervé Pagès wrote: The choice of the L suffix in R to mean "R integer type", which is mapped to the "int" type at the C level, and NOT to the "long int" type, is really unfortunate as it seems to be misleading and confusing a lot of people. Can you provide any evidence of

Re: [Rd] Where does L come from?

2018-08-25 Thread Dirk Eddelbuettel
On 25 August 2018 at 13:49, Hervé Pagès wrote: | The choice of the L suffix in R to mean "R integer type", which | is mapped to the "int" type at the C level, and NOT to the "long int" | type, is really unfortunate as it seems to be misleading and confusing | a lot of people. The point I was try

Re: [Rd] Where does L come from?

2018-08-25 Thread Hervé Pagès
The choice of the L suffix in R to mean "R integer type", which is mapped to the "int" type at the C level, and NOT to the "long int" type, is really unfortunate as it seems to be misleading and confusing a lot of people. The fact that nowadays "int" and "long int" have the same size on most plat

Re: [Rd] Where does L come from?

2018-08-25 Thread Dirk Eddelbuettel
On 25 August 2018 at 09:28, Carl Boettiger wrote: | I always thought it meant "Long" (I'm assuming R's integers are long | integers in C sense (iirrc one can declare 'long x', and it being common to | refer to integers as "longs" in the same way we use "doubles" to mean | double precision floati

Re: [Rd] Where does L come from?

2018-08-25 Thread Carl Boettiger
I always thought it meant "Long" (I'm assuming R's integers are long integers in C sense (iirrc one can declare 'long x', and it being common to refer to integers as "longs" in the same way we use "doubles" to mean double precision floating point). But pure speculation on my part, so I'm curious!

Re: [Rd] Where does L come from?

2018-08-25 Thread Henrik Bengtsson
Not that it brings closure, but there's also https://stat.ethz.ch/pipermail/r-devel/2017-June/074462.html Henrik On Sat, Aug 25, 2018, 06:40 Marc Schwartz via R-devel wrote: > On Aug 25, 2018, at 9:26 AM, Hadley Wickham wrote: > > > > Hi all, > > > > Would someone mind pointing to me to the in

Re: [Rd] Where does L come from?

2018-08-25 Thread Dirk Eddelbuettel
On 25 August 2018 at 08:26, Hadley Wickham wrote: | Would someone mind pointing to me to the inspiration for the use of | the L suffix to mean "integer"? This is obviously hard to google for, | and the R language definition | (https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Constant

Re: [Rd] Where does L come from?

2018-08-25 Thread Marc Schwartz via R-devel
On Aug 25, 2018, at 9:26 AM, Hadley Wickham wrote: > > Hi all, > > Would someone mind pointing to me to the inspiration for the use of > the L suffix to mean "integer"? This is obviously hard to google for, > and the R language definition > (https://cran.r-project.org/doc/manuals/r-release/R-la

[Rd] Where does L come from?

2018-08-25 Thread Hadley Wickham
Hi all, Would someone mind pointing to me to the inspiration for the use of the L suffix to mean "integer"? This is obviously hard to google for, and the R language definition (https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Constants) is silent. Hadley -- http://hadley.nz __