23 May 19:04
Re: Juxtaposition for string concatenation with implicit conversion
From: Guy Steele <Guy.Steele@...>
Subject: Re: Juxtaposition for string concatenation with implicit conversion
Newsgroups: gmane.comp.lang.fortress.general
Date: 2008-05-23 17:04:25 GMT
Subject: Re: Juxtaposition for string concatenation with implicit conversion
Newsgroups: gmane.comp.lang.fortress.general
Date: 2008-05-23 17:04:25 GMT
In response to feedback from several people, I have now revised my proposal. See below. On May 23, 2008, at 10:28 AM, Victor Luchangco wrote: > In a recent meeting, we discussed the merits and pitfalls of using > juxtaposition for string concatenation, and I think there was > sentiment against it, but we deferred decision on it. Here's an > example that we might consider in making this decision: > > run(args) = do > x = 3 > y = 2 > println x y > println x y "4" > println "4" x y > end > > By the way, this example is similar to the Visual Basic program we > give as an example of how coercion can be confusing in the coercion > paper. > > - Victor Yes, this is an issue, but my new proposal below addresses this. Changes are indicated by <add></add> and <delete></delete>. REVISED PROPOSAL: Define infix || to be straightforward string concatenation. Thus the(Continue reading)
RSS Feed