Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update minimum supported Swift version to Swift 5.7 #1837

Draft
wants to merge 52 commits into
base: develop
Choose a base branch
from

Conversation

calda
Copy link
Collaborator

@calda calda commented Aug 26, 2024

Based on the current set of CI jobs, SwiftFormat currently supports a minimum Swift version of Swift 5.2, which was released in Feb 2020.

In #1832, we had been talking about using multiple-trailing-closure syntax for a new feature. Multiple trailing closures were introduced in Swift 5.3, so to use this approach we have to update the minimum supported Swift version.

@nicklockwood, what are your general thoughts on what Swift versions should be supported by SwiftFormat?

We could just update to Swift 5.3+, which would lets us use trailing closures. I personally like the sound of Swift 5.7, since it adds a lot of extra functionality that we're missing in Swift 5.2 while still being somewhat older (released in September 2022).

a.baranouski and others added 30 commits August 24, 2024 10:53
…e property's type is an existential, or if the RHS value has an infix operator
@nicklockwood nicklockwood force-pushed the develop branch 14 times, most recently from 89c1701 to 3cbdb99 Compare November 23, 2024 19:33
@nicklockwood nicklockwood force-pushed the develop branch 9 times, most recently from cae4d67 to f36187b Compare November 27, 2024 00:00
@nicklockwood nicklockwood force-pushed the develop branch 2 times, most recently from 8b0b9d0 to a608072 Compare December 16, 2024 18:15
@nicklockwood nicklockwood force-pushed the develop branch 4 times, most recently from f9e5a79 to 112174a Compare December 22, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants