Re: [R] Google style

2009-09-02 Thread Martin Maechler
> Duncan Murdoch > on Tue, 01 Sep 2009 08:02:57 -0400 writes: > On 9/1/2009 6:37 AM, (Ted Harding) wrote: >> On 01-Sep-09 10:25:53, Duncan Murdoch wrote: >>> Jim Lemon wrote: Duncan Murdoch wrote: > On 8/31/2009 11:50 AM, Mark Knecht wrote: > On Mon, A

Re: [R] Google style

2009-09-01 Thread Duncan Murdoch
On 9/1/2009 6:37 AM, (Ted Harding) wrote: On 01-Sep-09 10:25:53, Duncan Murdoch wrote: Jim Lemon wrote: Duncan Murdoch wrote: On 8/31/2009 11:50 AM, Mark Knecht wrote: On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote: The authors borrowed so much else from C, the semicolon would have

Re: [R] Google style

2009-09-01 Thread Ted Harding
On 01-Sep-09 10:25:53, Duncan Murdoch wrote: > Jim Lemon wrote: >> Duncan Murdoch wrote: >>> On 8/31/2009 11:50 AM, Mark Knecht wrote: On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote: > The authors borrowed so much else from C, the semicolon would have > been good too

Re: [R] Google style

2009-09-01 Thread Duncan Murdoch
Jim Lemon wrote: Duncan Murdoch wrote: On 8/31/2009 11:50 AM, Mark Knecht wrote: On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote: The authors borrowed so much else from C, the semicolon would have been good too. Something I have thought myself. I know re

Re: [R] Google style

2009-09-01 Thread Jim Lemon
Duncan Murdoch wrote: On 8/31/2009 11:50 AM, Mark Knecht wrote: On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote: The authors borrowed so much else from C, the semicolon would have been good too. Something I have thought myself. I know real R coders will chuckle I'd say cringe, ra

Re: [R] Google style

2009-08-31 Thread RICHARD M. HEIBERGER
This is where a good editor with proper syntactic indentation is helpful. The first example is Terry's function as indented by ESS. It is very clear that there are two lines with parallel indentation. zed <- function(x,y,z) { x + y +z; } The second function is modified to place the "+" on th

Re: [R] Google style

2009-08-31 Thread Mark Knecht
On Mon, Aug 31, 2009 at 10:00 AM, Duncan Murdoch wrote: > On 8/31/2009 11:50 AM, Mark Knecht wrote: >> >> On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote: >> >>> >>> The authors borrowed so much else from C, the semicolon would have been >>> good too. >> >> >> >> I know real R coders will c

Re: [R] Google style

2009-08-31 Thread Duncan Murdoch
On 8/31/2009 11:50 AM, Mark Knecht wrote: On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote: The authors borrowed so much else from C, the semicolon would have been good too. I know real R coders will chuckle I'd say cringe, rather than chuckle. This is going to make you waste a lot

Re: [R] Google style

2009-08-31 Thread Mark Knecht
On Mon, Aug 31, 2009 at 6:36 AM, Terry Therneau wrote: > The authors borrowed so much else from C, the semicolon would have been > good too. I know real R coders will chuckle but I've taken to using semicolons just because it looks better to my eyes and let's my brain know where I think lines en

Re: [R] Google style

2009-08-31 Thread Terry Therneau
Since I read digests, and don't read mail on weekends, I come to this discussion late. It was very entertaining. I only wish to comment on 2 points. The first is Henrich's (I believe) one that trying to convert an old-time user to new styles is futile. I agree wholeheartedly. As proof I of