From kry|ov@r00t @end|ng |rom gm@||@com  Sun Dec  5 13:22:12 2021
From: kry|ov@r00t @end|ng |rom gm@||@com (Ivan Krylov)
Date: Sun, 5 Dec 2021 15:22:12 +0300
Subject: [Rd] string concatenation operator (revisited)
In-Reply-To: <00df01d7e97f$74cc8d80$5e65a880$@verizon.net>
References: <MWHPR1001MB2384CD0939331AF4B4DE9C41CF6B9@MWHPR1001MB2384.namprd10.prod.outlook.com>
 <00df01d7e97f$74cc8d80$5e65a880$@verizon.net>
Message-ID: <20211205152212.3b7a6806@Tarkus>

On Sat, 4 Dec 2021 21:26:05 -0500
Avi Gross via R-devel <r-devel at r-project.org> 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 (".."), SQL
("||", only some of the dialects) and Raku ("~", former Perl6). Some of
the potential concerns with string concatenation as an operator in R
could be alleviated by introducing a separate operator, just like matrix
multiplication ("%*%") is separate from elementwise multiplication
("*"), nowadays even in Python ("@" and "*", respectively).

-- 
Best regards,
Ivan



[Rd] string concatenation operator (revisited)
Ivan Krylov