by daeken · 6y ago · 0 comments
if(foo != null) return foo;
Into return? foo;
It fits perfectly with the existing null coalescing operators and such, while really cleaning up a lot of code.if(?foo){return null}
while (!return? foo) {
foo = get_foo();
}If it returns null, what's the difference between:
>return foo;
and
>return? foo;
?