Avatar
Avatar
koher
え、そうなのか。式なのになぜ😂
omochimetaru 7/26/2023 7:13 AM
https://github.com/apple/swift-evolution/blob/main/proposals/0380-if-switch-expressions.md#detailed-design
There are of course many other places where an expression can appear, including as a sub-expression, or as an argument to a function. This is not being proposed at this time, and is discussed in the future directions section.
だめな理由ははっきりとは書いてないなあ、いったん狭い範囲で導入する、という感じですね。 Future Directionsのほうに、full expression化するとこれまでの文法とコンフリクトしてsource breakingになるケースの言及はありますね。