Re:Why don't more languages offer flow typing?
by endtime on Monday April 04, 2022 @11:15AM
(#30907618)
Dart does this, or at least something very similar, and it is really nice. It's most useful for narrowing nullable types to their non-nullable counterparts after a null-check, but the subclass case works too.
[ Parent
| on HN ]