[swift-evolution] ternary operator ?: suggestion
Charles Constant
charles at charlesism.com
Sat Jan 9 19:44:12 CST 2016
Paul, my preference is for the shorter ones - whether yours, mine, others.
I don't think that verbosity (even using "case") is better suited to this
ternary/switch proposal.
Verbosity only makes sense when the payoff is more clarity. But what the
proposal we're all discussing is for, is to simplify a choice between cases
in a list - possibly *dozens* of cases.
If it made sense to be verbose here, then why not also be verbose when
creating Dicts or Arrays?
Hope this makes sense.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160109/26c2e704/attachment.html>
More information about the swift-evolution
mailing list