mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
871 B
871 B
Upcoming language features
Upcoming language features enable new (but potentially source breaking) functionality that be enabled by default in an upcoming language mode.
Overview
Upcoming language features allow the incremental adoption of language features that would otherwise
only be available in a new language mode, without having to fully migrate to that mode. They can be
enabled on the command line with -enable-upcoming-feature <feature>.
Some upcoming features have an additional "migration" mode, where the compiler will emit warnings
with fix-its to help migrate to that mode. This can be enabled with -enable-upcoming-feature <feature>:migrate.