From csardi.gabor at gmail.com  Wed Jun 17 04:40:13 2015
From: csardi.gabor at gmail.com (=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=)
Date: Tue, 16 Jun 2015 22:40:13 -0400
Subject: [Rd] Improving string concatenation
In-Reply-To: <CAKShX4DCwKwuq7Q7hBFkMebPAkc=4SU=LWq+gEEHeFT35XuhFQ@mail.gmail.com>
References: <CAKShX4A5bVtxVAG+01QjNH0=LaVr6MH48xXs-OtbQQ2247cc_g@mail.gmail.com>
	<5580BE4F.8060401@fredhutch.org>
	<CABtg=KmfPxZsW7Bfn8EALQb5aT03cMXt0sDzam=ECmhUydb=Sw@mail.gmail.com>
	<CAKShX4DCwKwuq7Q7hBFkMebPAkc=4SU=LWq+gEEHeFT35XuhFQ@mail.gmail.com>
Message-ID: <CABtg=Kn=mVdajrjFwqt7B1GYLX4ERGY_ccBNWurQJKtMhTgM_w@mail.gmail.com>

On Tue, Jun 16, 2015 at 10:30 PM, Joshua Bradley <jgbradley1 at gmail.com> wrote:
> One of the poster's on the SO post I linked to previously suggested this but
> if '+' were made to be S4 compliant, then adding the ability to concat
> strings with '+' would be a relatively simple addition (no pun intended) to
> the code base I believe. With a lot of other languages supporting this kind
> of concatenation, this is what surprised me most when first learning R.
>
> This is where my (lack of) experience in R starts to show and why I brought
> up the question about performance. I'm wondering how bad performance would
> be effected by making '+' (or all arithmetic operators in general) S4
> compliant.

I don't know much about S4, but '+' is already generic, so
implementation would be
easy I guess. Also, since it is already generic, I don't think this
would affect performance at all. (But FIXME please.)

The reason why it is not implemented is not because it is difficult.

Gabor

> Josh Bradley



[Rd] Improving string concatenation
=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=