Using the *multiplication operator* as a *separator* character seems like
an extraordinarily bad idea.

let fsa:[2 * Int] = [2 * 5, 3] // [10, 3] ???

On Sun, Jul 23, 2017 at 11:59 AM, David Sweeris <[email protected]> wrote:

>
>
> Sent from my iPhone
>
> On Jul 23, 2017, at 08:45, Taylor Swift via swift-evolution <
> [email protected]> wrote:
>
>
>
> On Sun, Jul 23, 2017 at 5:29 AM, Adrian Zubarev via swift-evolution <
> [email protected]> wrote:
>
>> I wanted to read the proposal, but skipped it as soon as I’ve seen the
>> syntax. From the esthetic point of you the proposed syntax is really ugly.
>> Again I’m not speaking against the feature in general, nor against any of
>> the technical benefits fixed-size array will provide to us. I simply
>> dislike the syntax, which in my opinion does not fit to Swift.
>>
>
> What about a double colon?
>
> let fsa:[5, 2::Int] = [5, 2::[::0, 0]: 5, [::5, 1]: 6, default: -1]
>
>
> I thought we'd mostly settled on "let fsa: [count * Type]" last time this
> came up.
>
> - Dave Sweeris
>
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to