[R] Unreadable code: was the underscore ("_") in variables

Patrick Connolly P.Connolly at hort.cri.nz
Tue Oct 3 01:09:37 CEST 2000


According to Bill Venables:

|> If we follow your suggestion and give prominence to the fact that "_" is a
|> synonym for "<-" then as sure as eggs some people will actually USE it!
|> This is, in the opinion of many of us at least, a very BAD thing as it
|> makes code just about unreadible.  

It appears somewhat different from my perspective.

I got into the habit of using emacs S-mode early in my time with the S
language.  Being a lazy typist, I found it convenient to use the
parser to expand the assignments, add spaces and generally make
readable any code I wished to use again (such as in functions).  To
anyone looking over my shoulder it might look crude, but it works
quickly and safely as I am concerned.

BTW: this no longer works using ESS as far as I can tell.  To a lazy
typist this is a sad loss.  Has anyone found a way to return this
functionality?



-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world's largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you've seen it.  ---Steven Wright
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list