News for hackers. Stuff that matters.
Re:Why don't more languages offer flow typing? by SideburnsOfDoom on Monday April 04, 2022 @03:33PM (#30911029)
It's exactly that.

e.g. inside "if (x != null) { }", or after "x = y ?? throw new ArgumentNullException()" then x is known not null.

C# has flow types, but only in this specific and limited way. You could say that about a lot of programming language features.

There are no comments on this comment yet.