[swift-evolution] [Pitch] New Version of Array Proposal

Taylor Swift kelvin13ma at gmail.com
Sun Jul 23 22:23:21 CDT 2017

Between comma, semicolon, and colon, I think semicolon is the best choice
(though I would prefer double colon over all three). However I don’t think
we should discard possible alternatives just because they aren’t already
reserved separators. Neither ',', ';', ':', nor '::' is particularly
readable, and compiler parser code only needs to be written once, while
language syntax, once it’s decided on, is stuck with us forever.

On Sun, Jul 23, 2017 at 11:05 PM, Daryle Walker <darylew at mac.com> wrote:

> > On Jul 23, 2017, at 3:18 PM, Taylor Swift via swift-evolution <
> swift-evolution at swift.org> wrote:
> >
> >
> > If we’re actually going to try and establish a relationship between the
> FSA asterisk and the multiplication asterisk, this is even more
> problematic. How does the asterisk work in FSA literals, where there is no
> type annotation to go on the right of the asterisk?
> >
> > Also introducing contextual keywords like “of” is going to cause a huge
> amount of problems with syntax highlighters considering how often the word
> “of” is used as an argument label in Swift. The words “as” and “stride”
> already make for some interesting code highlighting, “of” would take it to
> a whole new level.
> I think I mentioned it at the end of the proposal, but there’s a reason
> I’m using comma/colon/semicolon for FSAs. They are already reserved
> separators within Swift’s syntax. The multiplier ideas or “of” seem to be
> just for cuteness; why take a token out from being free to reserved for a
> purpose that can be mechanically done by an existing separator token.
>> Daryle Walker
> Mac, Internet, and Video Game Junkie
> darylew AT mac DOT com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170723/aa041291/attachment.html>

More information about the swift-evolution mailing list