SE-0329 (Third review): Clock, Instant, and Duration

Per the discussion in this review, the authors have agreed to change the proposal by making the following changes to the API of Duration:

  • The accessors
    public var secondsPortion: Int64 { get }
    public var nanosecondsPortion: Int64 { get }
    
    have been replaced with the accessor:
    public var components: (seconds: Int64, attoseconds: Int64) { get }
    
  • The following initializer has been added:
    public init(secondsComponent: Int64, attosecondsComponent: Int64)
    

The Core Team has decided that adding initializers to make it easier to interoperate with types such as struct timespec is important but outside of the scope of Evolution review.

This review has been extended until next Monday, the 7th of February, to allow for further discussion of the new proposal. Only the above accessors or closely-related API are on topic for the review. Thank you for your patience with this process.

John McCall
Review Manager.

10 Likes