[R] R is GNU S, not C.... [was "how to get or store ....."]
ronggui
042045003 at fudan.edu.cn
Tue Dec 6 15:51:36 CET 2005
======= 2005-12-06 22:16:17 ÄúÔÚÀ´ÐÅÖÐдµÀ£º=======
>Martin Maechler a écrit :
>
>> please, please, these trailing ";" are *so* ugly.
>> This is GNU S, not C (or matlab) !
>>
>> but I'll be happy already if you could
>> drop these ugly empty statements at the end of your lines...
>
>May I disagree ?
>I find missing ";" at end of lines *so* ugly.
>Ugly/not ugly depends on our observer's eyes.
> From my programmer point of view, I prefer to mark
>clearly the end of the lines.
>In many languages, it's safer to do it this way,
>and I thank the R developers to permit it.
>(in my opinion, it should even be mandatory).
>(By the way, marking the end of lines with a unique symbol
>makes also the job easier for the following treatment.)
>And yes, I'm also a C programmer ;-)
>
> > {and I have another chain of argments why "<-" is so more
> > expressive than "="
>
>Why "<-" seems better than "=" is also quite mysterious for me.
>There was a discussion about this point recently I think.
>I believe in 99% of cases it's more for historical reason
>(and perhaps also for some "snob" reasons).
>
>I am not at all a 20 years experienced R programmer, but I have
>written several hundreds of R lines those 6 last months,
>and until today didn't get any problem using "=" instead of "<-".
I think it is NOT just for historical reason.see the following example:
> rm(x)
> mean(x=1:10)
[1] 5.5
> x
Error: object "x" not found
> mean(x<-1:10)
[1] 5.5
> x
[1] 1 2 3 4 5 6 7 8 9 10
>But I'll read your chain of arguments with interest.
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
= = = = = = = = = = = = = = = = = = = =
2005-12-06
------
Deparment of Sociology
Fudan University
My new mail addres is ronggui.huang at gmail.com
Blog:http://sociology.yculblog.com
More information about the R-help
mailing list