Avatar
omochimetaru 1/24/2020 7:56 AM
let書けるようになりそうなのか
It's scaffolding for supporting let declarations, if let, and switch statements to make function builders more expressive, although that generalization is still a work-in-progress.
7:58 AM
For example, right now a single-expression closure can infer a closure result type: but a multi-statement closure does not: and one will have to provide some type annotations to make this code compile. We should be able to infer the result type of the closure to avoid the need for extra type annotations.
7:58 AM
複数文クロージャの推論制限も外せるかもって言ってる!?
8:00 AM
なんかよくわからないけど、これまでは推論ステージを分けて制御していた部分が、 推論器の内部でステージを制御できるような機能を与えることでいろいろうまくいくみたいな事な気がするな。