[swift-evolution] [Pitch] Moving where Clauses Out Of Parameter Lists

Erica Sadun erica at ericasadun.com
Wed Apr 6 13:56:04 CDT 2016


> On Apr 6, 2016, at 12:30 PM, Developer via swift-evolution <swift-evolution at swift.org> wrote:
> 
> If you've ever gotten to the point where you have a sufficiently generic interface to a thing and you need to constrain it, possibly in an extension, maybe for a generic free function or operator, you know what a pain the syntax can be for these kinds of operations.  For example, the Swift book implements this example to motivate where clauses
> 
> This is noisy and uncomfortable to my eyes, and almost impossible to align correctly.  Per a short discussion on Twitter with Joe Groff and Erica Sadun, I'd like so see what the community feels about moving the where clause out of the angle brackets.  So that example becomes
> 
> Thoughts?

+1.

-- E

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


More information about the swift-evolution mailing list