[swift-evolution] Allowing trailing commas in argument lists

Jens Persson jens at bitcycle.com
Thu Mar 10 18:42:26 CST 2016


On Fri, Mar 11, 2016 at 1:21 AM, Joe Groff via swift-evolution <
swift-evolution at swift.org> wrote:

>
> > On Mar 10, 2016, at 1:29 PM, Radosław Pietruszewski via swift-evolution <
> swift-evolution at swift.org> wrote:
> >
> >> In working with many programming languages since
> >> ca. 1980, there was not even one language offering this,
> >> and I am an experienced programmer.
> >
> > Ruby, JavaScript, CoffeeScript, Swift.
>

And from the Java specification:
"A trailing comma may appear after the last expression in an array
initializer and is ignored."
(And it's been there since JLS 1.0)


On Fri, Mar 11, 2016 at 1:21 AM, Joe Groff via swift-evolution <
swift-evolution at swift.org> wrote:

>
> > On Mar 10, 2016, at 1:29 PM, Radosław Pietruszewski via swift-evolution <
> swift-evolution at swift.org> wrote:
> >
> >> In working with many programming languages since
> >> ca. 1980, there was not even one language offering this,
> >> and I am an experienced programmer.
> >
> > Ruby, JavaScript, CoffeeScript, Swift.
>
> Perl accepted trailing commas before it was cool.
>
> -Joe
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>



-- 
bitCycle AB | Smedjegatan 12 | 742 32 Östhammar | Sweden
http://www.bitcycle.com/
Phone: +46-73-753 24 62
E-mail: jens at bitcycle.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160311/922b4d4a/attachment.html>


More information about the swift-evolution mailing list