> On Oct 25, 2016, at 23:51, Charlotte Angela Tortorella via swift-evolution
> <[email protected]> wrote:
>
> Disadvantages of The Ternary Operator
>
> [...]
>
> 6. This operator is only applicable to a single type, `Bool`.
>
> [...]
>
> Proposed Approach
>
> We should drop the ternary operator in favor of a new extension to `Bool`.
I'm not sure proposals should do exactly what they claim is a downside of the
current approach. Especially when the downside in question is inherent to the
problem being solved.
FWIW, the only thing I find confusing about the ternary operator is that I
can't overload it. Being able to define my own ternary operators would be
great, but I don't have an answer to obvious potential ambiguities.
- Dave Sweeris
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution