Re: [Rd] string concatenation operator (revisited)

2021-12-05 Thread Radford Neal
> The TL;DR version is base R support for a `+.character` method. This > would essentially provide a shortcut to `paste0`... In pqR (see pqR-project.org), I have implemented ! and !! as binary string concatenation operators, equivalent to paste0 and paste, respectively. For instance, > "he

Re: [Rd] string concatenation operator (revisited)

2021-12-05 Thread Duncan Murdoch
On 05/12/2021 7:22 a.m., Ivan Krylov wrote: On Sat, 4 Dec 2021 21:26:05 -0500 Avi Gross via R-devel wrote: In many languages, like PERL, this results in implicated conversion to make "text1" the result. FWIW, Perl5 has a separate string concatenation operator (".") in order to avoid potentia

Re: [Rd] string concatenation operator (revisited)

2021-12-05 Thread GILLIBERT, Andre
Ivan Krylov wrote: > FWIW, Perl5 has a separate string concatenation operator (".") in order > to avoid potential confusion with addition. So do Lua (".."), SQL > ("||", only some of the dialects) and Raku ("~", former Perl6). Indeed, using the same operator '+' for addition and string concatena

Re: [Rd] string concatenation operator (revisited)

2021-12-05 Thread Ivan Krylov
On Sat, 4 Dec 2021 21:26:05 -0500 Avi Gross via R-devel wrote: > In many languages, like PERL, this results in implicated conversion > to make "text1" the result. FWIW, Perl5 has a separate string concatenation operator (".") in order to avoid potential confusion with addition. So do Lua (".."),