|
|
|
|
|
by lmm
2958 days ago
|
|
> In flow typing you replace the control flow part of pattern matching with `if x.is_a? Type` Hmm, I guess flow typing lets you do an exhaustiveness check of an if-else style set of cases. Still seems like a syntactic shortcut would be nice, just as one misses "switch" in Python. |
|