[swift-evolution] commas optional
swift at lng.la
swift at lng.la
Thu Oct 12 14:46:41 CDT 2017
I don't really expect this sort of syntactic sugar to be popular enough to make it through swift-evolution, and I don't think it's worth the distraction from more important priorities at this time, but for what it's worth, I've enjoyed this feature in other languages that support it. It plays a small part in making code more focused by eliminating unnecessary syntax.
I could be wrong, but I'm not so sure that this would actually be source breaking. Even if you have something like this:
let points = [
Proper implementation of this feature wouldn't suddenly interpret `Point(` as its own element.
On Oct 12, 2017, 12:23 -0700, Josh Parmenter via swift-evolution <swift-evolution at swift.org>, wrote:
> On Oct 12, 2017, at 12:17 PM, Kelvin Ma via swift-evolution <swift-evolution at swift.org<mailto:swift-evolution at swift.org>> wrote:
> a semicolon is a purely syntactic delimiter, the comma on the other hand corresponds to physical elements in a collection. I think the two are more different than you suggest.
> I very much agree^
> Joshua Parmenter | Engineering Lead, Apple Technologies
> T 248 777 7777
> C 206 437 1551
> F 248 616 1980
> 2211 5th Ave Suite 201
> Seattle, WA 98121 USA
> Think Tank. Lab. Studio.
> We invent digital products and experiences.
> SEATTLE | DETROIT | NEW YORK | MUNICH | HYDERABAD
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution