Skip to content

Version 0.17.0

Choose a tag to compare

@SDGGiesbrecht SDGGiesbrecht released this 20 Apr 20:17
· 427 commits to master since this release
8359e13

Breaking Changes

  • iOS 11
  • watchOS 4
  • tvOS 11
  • Operators are no longer duplicated in the umbrella SDGCornerstone module. Import SDGLogic, SDGMathematics and SDGCollections directly to get access to them (until Swift properly exports operators).
  • Interpolation of strict strings and semantic markup require values to be converted to explicit text representations. Existing interpolations which rely on implicit description will no longer compile.
    var strict: StrictString = ""
    
    // String‐like types can be interpolated directly:
    let string: String = "Hello, world!"
    let character: Unicode.Scalar = "?"
    strict = "\(string) ...\(character)"
    
    // Most other types must be explicitly converted to some predictable text representation:
    let number = Int.random(in: 0 ... 1000)
    strict = "“\(number.inRomanNumerals())” means the same as “\(number.inDigits())”."
    
    // The Swift compiler’s own description of any value can still be requested explicitly:
    let something: Any = getError()
    strict = "Error: \(arbitraryDescriptionOf: something)"

Bug Fixes

  • Conditional patterns can be successfully compared against the end of a collection.