[swift-evolution] ternary operator ?: suggestion

Craig Cruden ccruden at novafore.com
Sun Jan 17 18:08:48 CST 2016


Another attempt on motivation to thread the needle.

https://github.com/cacruden/swift-evolution/blob/master/proposals/0000-Pattern-Matching-Partial-Function.md <https://github.com/cacruden/swift-evolution/blob/master/proposals/0000-Pattern-Matching-Partial-Function.md>

> On 2016-01-18, at 3:04:35, Charles Constant <charles at charlesism.com> wrote:
> 
> 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/20160118/f6837d1d/attachment.html>


More information about the swift-evolution mailing list