[R] R as a programming language

hadley wickham h.wickham at gmail.com
Thu Nov 8 18:57:14 CET 2007


> My objection, at least, was that + should be *associative*.  I don't think
> anyone would expect a + b and b+a to be the same for strings, but I do
> think the fact that (a+b)+c and a+(b+c) would be different (if some of a,
> b,c were strings) has real potential for ugliness.

You're assuming an automatic cast from numbers into strings?  What if
a + "4" threw an error?

Hadley

-- 
http://had.co.nz/



More information about the R-help mailing list