Avatar
omochimetaru 8/21/2023 8:19 AM
However, the impact of bidirectional inference on the performance of the type checker would likely prohibit this feature from being implemented today, even if it were considered preferable. This is especially true in cases where there are many branches. This decision could be revisited in future: switching to full bidirectional type inference may be source breaking in theory, but probably not in practice (the proposal authors can't think of any examples where it would be).
8:20 AM
型推論が重くなりそうだから、分岐ごとの部分式を合成して推論する事をしていなくて
8:20 AM
分岐ごとに推論した後で結果をマージしようとしている。