Re: [R] recommendations on use of -> operator

2010-03-18 Thread Emmanuel Charpentier
Le jeudi 18 mars 2010 à 15:49 -0400, Duncan Murdoch a écrit : > On 18/03/2010 3:10 PM, Emmanuel Charpentier wrote: > > An old (Lisp ? C ?) quote, whose author escapes me now, was : > > > > "syntactic sugar causes cancer of the semicolon" > > > > .. but nowadays semicolons are rarely used in "real

Re: [R] recommendations on use of -> operator

2010-03-18 Thread RICHARD M. HEIBERGER
PL1 used semi-colons, therefore so does SAS (Yes, SAS was originally written in PL1). [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://

Re: [R] recommendations on use of -> operator

2010-03-18 Thread Duncan Murdoch
On 18/03/2010 3:10 PM, Emmanuel Charpentier wrote: An old (Lisp ? C ?) quote, whose author escapes me now, was : "syntactic sugar causes cancer of the semicolon" .. but nowadays semicolons are rarely used in "real-life" R. Emmanuel Charpentier PS and, B

Re: [R] recommendations on use of -> operator

2010-03-18 Thread Emmanuel Charpentier
An old (Lisp ? C ?) quote, whose author escapes me now, was : "syntactic sugar causes cancer of the semicolon" .. but nowadays semicolons are rarely used in "real-life" R. Emmanuel Charpentier PS and, BTW, neither C nor Lisp have much use for semicolons..

Re: [R] recommendations on use of -> operator

2010-03-18 Thread Prof Brian Ripley
-> is usually only used when you suddenly remember you wanted to keep result of a computation, especially in the days before command-line editors were universal. fn(a,b) ... oh I'd better keep that ... -> z On Thu, 18 Mar 2010, Dan Kelley wrote: I have never used -> but I noticed at

Re: [R] recommendations on use of -> operator

2010-03-18 Thread Duncan Murdoch
On 18/03/2010 7:08 AM, Dan Kelley wrote: I have never used -> but I noticed at http://github.com/jiho/r-utils/blob/master/beamer_colors.R that some people do. In fact, the above-named code has a sort of elegance about it (except for the use of "=" for assignment...). To my eye,

[R] recommendations on use of -> operator

2010-03-18 Thread Dan Kelley
I have never used -> but I noticed at http://github.com/jiho/r-utils/blob/master/beamer_colors.R that some people do. In fact, the above-named code has a sort of elegance about it (except for the use of "=" for assignment...). To my eye, -> calls to mind a type of assignment th