[swift-evolution] Proposal: Pattern Matching Partial Function (#111)

Denis Nikitenko d.nikitenko at icloud.com
Tue Feb 2 20:59:15 CST 2016


+1 from me - I would like to see this discussion continue.  Swift already recognizes the utility of pattern matching for initialization by retaining the ?: operator.  It would be nice to see a more general and flexible solution that is still reasonably concise and doesn’t introduce new keywords and operators - though I’m sure at least some changes to the language would be inevitable.  


> On Jan 29, 2016, at 1:43 AM, Craig Cruden via swift-evolution <swift-evolution at swift.org> wrote:
> 
> The following proposal apparently was not considered widely enough discussed since it was “buried” in a 400 message discussion thread that meandered before coming to the final draft.
> 
> As such, to have it reopened — I am restarting the discussion in a new thread to ensure wider discussion.
> 
> 
> https://github.com/cacruden/swift-evolution/blob/master/proposals/0024-Pattern-Matching-Partial-Function.md <https://github.com/cacruden/swift-evolution/blob/master/proposals/0024-Pattern-Matching-Partial-Function.md>
> 
> 
> Pattern Matching Partial Function
> 

<snip>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160202/af2937d6/attachment.html>


More information about the swift-evolution mailing list