[swift-evolution] Foundation and value types

Dmitri Gribenko gribozavr at gmail.com
Thu Dec 10 18:38:24 CST 2015

On Thu, Dec 10, 2015 at 4:09 PM, Matthew Johnson via swift-evolution
<swift-evolution at swift.org> wrote:
> I am very happy that Swift 3 is placing a priority on portability, especially including a robust library enabling real work to be done.
> Adopting Foundation as the library interface is an obvious choice for many reasons.  Despite that I find it rather unfortunate that we are tied to an API designed in a different language without the rich feature set Swift has to offer, especially expressive and highly functional value types.
> Many of the types in Foundation would naturally be designed as value types in Swift, evidenced by the fact that String, Array, Dictionary and Set are implemented this way in Swift's standard library.  I'm sure it would be out of scope for Swift 3, but I am wondering if there are plans to design Swift-native value types corresponding to the Foundation types where that makes sense (Date, URL, etc).

It seems to be an area of the library where value types would make a
lot of sense, so I'd like this conversation to continue.  Tony, what
do you think?


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the swift-evolution mailing list