Swift.org - Swift 5.9 Released
SE-0366: consume operator to end the lifetime of a variable binding.
C++の std::move と同じものが導入されました。
swift-evolution/proposals/0366-move-function.md at main · apple/swift-evolution · GitHub
SE-0380: if and switch expressions
switchのreturn書くのが面倒だったのが改善されました。
2項演算子の可読性が悪いのも改善できます。
swift-evolution/proposals/0380-if-switch-expressions.md at main · apple/swift-evolution · GitHub
SE-0390: Noncopyable structs and enums
C++の std::unique_ptr と同じものが導入されました。