[swift-evolution] ternary operator ?: suggestion

Charles Constant charles at charlesism.com
Sun Jan 17 14:04:35 CST 2016

I think examples are convincing, but ideally we would put most of them in
separate document.

Though I love reading about programming, I generally do it in a half-assed
sort of way. Unless the writing is very blunt and clear, I don't really
understand it until I need to do it myself. I doubt I'm the only person
here like this.

I badly want this proposal to gain traction (more so every time I find
myself writing code that it could improve, which happens daily). I think
the proposal ought to be short and sweet. I believe if we hold the reader's
attention just long enough for them to understand what we're talking about,
they'll be onboard. Once they're hooked, we have our second document with
the list of examples.

It would also be great to have the "before snippet" and "after snippet"
visually arranged side-by-side. I'm guessing markdown doesn't support this
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160117/b0e621f7/attachment.html>

More information about the swift-evolution mailing list