Henrik Bengtsson
2017-Jun-16 15:54 UTC
[Rd] R history: Why 'L; in suffix character ‘L’ for integer constants?
I'm just curious (no complaints), what was the reason for choosing the letter 'L' as a suffix for integer constants? Does it stand for something (literal?), is it because it visually stands out, ..., or no specific reason at all? /Henrik
Serguei Sokol
2017-Jun-16 16:00 UTC
[Rd] R history: Why 'L; in suffix character ‘L’ for integer constants?
Le 16/06/2017 ? 17:54, Henrik Bengtsson a ?crit :> I'm just curious (no complaints), what was the reason for choosing the > letter 'L' as a suffix for integer constants? Does it stand for > something (literal?), is it because it visually stands out, ..., or no > specific reason at all?My guess is that it is inherited form C "long integer" type (contrary to "short integer" or simply "integer") https://en.wikipedia.org/wiki/C_data_types
Yihui Xie
2017-Jun-16 17:47 UTC
[Rd] R history: Why 'L; in suffix character ‘L’ for integer constants?
Yeah, that was what I heard from our instructor when I was a graduate student: L stands for Long (integer). Regards, Yihui -- https://yihui.name On Fri, Jun 16, 2017 at 11:00 AM, Serguei Sokol <sokol at insa-toulouse.fr> wrote:> Le 16/06/2017 ? 17:54, Henrik Bengtsson a ?crit : >> >> I'm just curious (no complaints), what was the reason for choosing the >> letter 'L' as a suffix for integer constants? Does it stand for >> something (literal?), is it because it visually stands out, ..., or no >> specific reason at all? > > My guess is that it is inherited form C "long integer" type (contrary to > "short integer" or simply "integer") > https://en.wikipedia.org/wiki/C_data_types
Seemingly Similar Threads
- R history: Why 'L; in suffix character ‘L’ for integer constants?
- R history: Why 'L; in suffix character ‘L’ for integer constants?
- R history: Why 'L; in suffix character ‘L’ for integer constants?
- R history: Why 'L; in suffix character ‘L’ for integer constants?
- R history: Why 'L; in suffix character ‘L’ for integer constants?