<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><div class="">Hi all,<br class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">this is my first contribution here. I tried to track down if someone has posted something similar but I couldn’t find any mail.</div><div class="">My proposal consists on making <font face="Consolas" class="">NSDate</font> (or <font face="Consolas" class="">Date</font> after the prefix removal) a <font face="Consolas" class="">struct</font> instead of a <font face="Consolas" class="">class</font>. I know that it was probably modeled as a class to keep compatibility with <font face="Consolas" class="">NSDate</font> from Cocoa, but I think it feels more natural to model it as a <font face="Consolas" class="">struct</font> in Swift (or even a <font face="Consolas" class="">typealias</font> for <font face="Consolas" class="">Double</font>, just like <font face="Consolas" class="">NSTimeInterval</font>).</div><div class="">I know that the bridging with Cocoa could be an issue, but <font face="Consolas" class="">String</font> is a struct and is bridged just fine to <font face="Consolas" class="">NSString</font>. Obviously, I am probably missing something about the implementation of something like that.</div><div class="">Here is a link to <font face="Consolas" class="">NSDate</font> in <font face="Consolas" class="">swift-corelibs-foundation</font>: <a href="https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSDate.swift" class="">https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/NSDate.swift</a></div><div class="">Thoughts?</div><div class="">Emanuel</div></div></div></div></div><br class=""></body></html>