Live data from Hacker News

Swift Local Refactoring

swift.org

1–5 of 5 posts

Re: Swift Local Refactoring

#4
post #2

How does this compare to the refactoring support available in AppCode? https://www.jetbrains.com/objc/features/refactorings-and-cod...

Worse. But not as bad as it used to be (nothing).

Application wide refactoring is a really nice thing to have in an IDE.

Re: Swift Local Refactoring

#5
post #2

How does this compare to the refactoring support available in AppCode? https://www.jetbrains.com/objc/features/refactorings-and-cod...

This post is specifically about how you can write your own refactoring (and contribute them back to the Swift compiler if you choose to do so).

The nice thing about Swift being open-source and Xcode supporting multiple Toolchains is you can test your own modifications to the language, refactorings, etc. Xcode will syntax highlight your language changes and provide access to your refactorings.

It is also a great way to test out other people's proposed changes to the language: pull their branch (or download their toolchain archive) and give it a try. As implementations for proposed Swift 5 changes start to become available you can test them in real situations and provide informed feedback.

As with any code, be careful about downloading from untrusted sources!