A thread on r-devel ("Historical NA question") went (finally) off-topic, heading towards "Precedence". This triggered a question that I think is better put on this list:

I have been more or less regularly been writing programs since the seventies (Fortran, later C) and I early got the habit of using parentheses almost everywhere, for two reasons. The first is the obvious, to avoid mistakes with precedences, but the second is almost as important: Readability.

Now, I think I have seen somewhere that unnecessary parentheses in R functions may slow down execution time considerably. Is this really true, ant should I consequently get rid of my faiblesse for parentheses?
Or are there rules for when it matters and doesn't matter?

Thanks, Göran

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to