On 11/12/10 4:41 AM, Steven Schveighoffer wrote:
On Fri, 12 Nov 2010 04:53:23 -0500, Andrei Alexandrescu
<seewebsiteforem...@erdani.org> wrote:

On 11/12/10 1:06 AM, Don wrote:
Andrei Alexandrescu wrote:
On 11/11/10 5:59 PM, Walter Bright wrote:
Andrei Alexandrescu wrote:
Let me ask a related question: if there were a priority list of
things
that Walter should be busy with, where would this feature be on that
list?

For once, I agree with Bearophile. The adjacent string
concatenation was
a very very early feature, and the ~ completely supplants it. While I
don't think it causes many problems, it's a pointless redundancy and
should be removed.

I agree too but there are many similarly good ideas (some of which
from himself) that are older.

Andrei

This isn't new. I remember this one being discussed about seven years
ago.

Well put me on board then. Walter, please don't forget to tweak the
associativity rules: var ~ " literal " ~ " literal " concatenates
literals first.

You mean *should* concatenate literals first? I think currently it doesn't.

-Steve

Yah, "shall" as they say in Standardese :o). Currently it doesn't, but you get to catenate literals by juxtaposition. For example, this expression:

s ~ "def" "ghi"

when naively changed to

s ~ "def" ~ "ghi"

will do more work than before. We must avoid that.


Andrei

Reply via email to