[swift-evolution] Proposal: Compile-time parameters

Thorsten Seitz tseitz42 at icloud.com
Sun Jan 31 03:16:40 CST 2016


> Am 30.01.2016 um 16:10 schrieb Tino Heth via swift-evolution <swift-evolution at swift.org>:
> 
> Although integer-type parameters are most likely the only ones with a broad use case, any type implementing one of the ...LiteralCovertible protocols could be used. Enums and other entities could make sense as well, but this is beyond the scope of this proposal.
> 
Does this imply that only literals would be allowed? That would be too limiting because then my example with a generic frameworks for physical units in the "type safe..." thread  would not be possible as it requires expressions at least in where clauses.

-Thorsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160131/295ed688/attachment.html>


More information about the swift-evolution mailing list