[Swift-devel] New syntax for appending to arrays

Alberto Chavez alberto_chavez at live.com
Tue Jun 28 15:18:27 CDT 2011


3

Date: Tue, 28 Jun 2011 15:17:51 -0500
From: ketancmaheshwari at gmail.com
To: davidkelly999 at gmail.com
CC: swift-devel at ci.uchicago.edu; foster at anl.gov
Subject: Re: [Swift-devel] New syntax for appending to arrays

3. or 1 >> a (following the UNIX append-like syntax "echo 1" >> a.txt)

On Tue, Jun 28, 2011 at 3:14 PM, David Kelly <davidkelly999 at gmail.com> wrote:

5

On Tue, Jun 28, 2011 at 2:29 PM, Mihael Hategan <hategan at mcs.anl.gov> wrote:


On Tue, 2011-06-28 at 09:08 -0500, Ian Foster wrote:

> $0,02 from me -- given that Swift has a C-like syntax, this syntax will surely confuse people??



"+=" is a bit confusing, but then I don't think it's more so than using

"+" as a string concatenation operator.



So please vote or propose an alternative:



0. a += 1;

1. a ++= 1;

2. a ++ 1;

3. a << 1;

4. a[] = 1;

5. a .= 1; (that would make more sense if "." meant concatenation in

swift).





_______________________________________________

Swift-devel mailing list

Swift-devel at ci.uchicago.edu

https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel




_______________________________________________

Swift-devel mailing list

Swift-devel at ci.uchicago.edu

https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel




-- 
Ketan




_______________________________________________
Swift-devel mailing list
Swift-devel at ci.uchicago.edu
https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20110628/58494c75/attachment.html>


More information about the Swift-devel mailing list