[R] Can we get rid of && and ||?

GB gb at stat.umu.se
Thu Apr 13 14:21:14 CEST 2000


Brian,

thanks for your comments. I have only one question/remark:

[snip]
> > Provided there are no other differences, I suggest that either
> > 
> > a) '&&'  is made obsolete, and  '&'  is 'improved' so that  b  in
> >    'a & b' is evaluated only if some component of  a  is TRUE, or
> 
> That would break S compatibility and a lot of correctly written code
> (including in R itself).

I meant keeping  '&&'  for precisely that reason, but changing  '&'  as
indicated, so that new code never had to consider '&&'. So, I made two
assumptions here: (i) Old code (or S code) will not be disturbed by the
'improvement' of  '&'; (ii) New code can always use '&' instead of '&&'.

Of course, if either assumption is wrong, the idea is not so good.

Göran
----------------------------------------------------------
 Göran Broström                      tel: +46 90 786-5223
 Department of Statistics            
 Umeå University                                         
 SE-90187 Umeå, Sweden              email: gb at stat.umu.se
----------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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