[Rd] "+" for character method...

Duncan Murdoch murdoch at stats.uwo.ca
Mon Aug 28 05:07:02 CEST 2006


On 8/27/2006 9:44 PM, Allen S. Rout wrote:
> Duncan Murdoch <murdoch at stats.uwo.ca> writes:
> 
>> According to Wikipedia, the "+" operator is used for concatenation in 
>> BASIC, Pascal, Delphi, Javascript, Java, Python, C++ and Ruby.  These 
>> are probably the most commonly used modern languages other than C (which 
>> has no concatenation operator) or Fortran (which I just discovered today 
>> uses "//").
> 
> PERL ( "." is concatenation ) would come just behind C and maybe Java
> in that list.  However, that doesn't materially damage 

Yes, Wikipedia mentioned Perl.  But "." is a name in R, so we couldn't 
use it as a concatenation operator without much bigger changes than I'd 
want to propose.  Maybe next April 1?

Duncan Murdoch

> 
>> So it seems to me that defining addition of strings to be
>> concatenation is a reasonably widespread convention.
> 
> 
> 
> - Allen S. Rout
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list