Re: [S] Assignment arrow.

Don MacQueen (macqueen1@llnl.gov)
Thu, 21 May 1998 09:44:51 -0800


And before and after logical operators also, I would suggest.

Making code human readable is _extremely_ important. The layout on the page
should reflect the logical structure, and this is why emacs ESS[S] mode is
such a wonderful tool.

Splus has a variety of syntax options that are useful, but that I tend to
avoid for the sake of clarity and quick comprehension. For example,
embedded assignment:
if ( x.cls <- inherits(x,'lm') ) {...}
(admittedly, this one isn't really all that bad, but you get the idea, I hope)

-Don

>>
>> What passion over such a bagatelle...
>>
>> The simple rule I urge on people is "always put whitespace before
>> and after the assignment operator". It would never fail if they
>> did it, but they never do, of course. In general people never do
>> pay enough attention to making code readible with appropriate
>> whitespace and it comes home to bite them again and again.
>>
>> (It's even surprising how much easier ASCII text is to read if it
>> has two spaces rather than one at the end of sentences, and a
>> line length no longer than 65-70 characters. Whole generations
>> of typists knew this in their finger bones but this still
>> relevant ancient knowledge is now all but forgotten. Sigh.)
>>
>> Bill.
>> -----------------------------------------------------------------------
>>
>
>Amen.
>
>Song Qian
>Environmental Sciences and Resources
>Portland State University
>Portland, OR 97207-0751
>-----------------------------------------------------------------------

--------------------------------
Don MacQueen
Environmental Protection Dept.
Lawrence Livermore National Lab
macq@llnl.gov (925) 423-1062
--------------------------------

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news