[Pitch #2] Regex Literals

To contribute some data to the level of source impact when in Swift 6 mode: we tested the proposed literal syntax using the Swift Package Index package collection. The packages were selected if they successfully built for Swift 5.6 using Swift package manager (swift build) on macOS.

  • Total packages - 2968
  • 16 Projects failed due to Regex Literal change
    • 15 Projects failed with error: prefix operator may not contain '/'
    • 1 Project failed due to / ambiguity
  • 74 Projects failed due to unrelated reasons

We also tested changes against a large closed-source swift codebase and found one instance of failure.

7 Likes