[swift-evolution] Epic: Typesafe calculations

Tino Heth 2th at gmx.de
Sat Dec 26 03:01:12 CST 2015


> If Swift would support non-type generic parameters, then I would like to have Boost.Unit library (http://www.boost.org/doc/libs/1_60_0/doc/html/boost_units.html <http://www.boost.org/doc/libs/1_60_0/doc/html/boost_units.html>) available in Swift.
To be honest, "non-type generic parameters" were plant as the final step in the whole topic — they would not only help with units, but also give us safe vector math. Just avoid the "T"-word and the language boost was written for; those can trigger unwanted reflexes ;-)

Tino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151226/2dfe471e/attachment.html>


More information about the swift-evolution mailing list