Y
Hacker News
new
|
ask
|
show
|
jobs
by
bvrmn
37 days ago
That's the reason language/compiler should directly support optionality.
You can't fool yourself and have to handle all cases:
https://godbolt.org/z/4GqMdPej3
1 comments
uecker
37 days ago
So it seems exactly the same to me?
link
bvrmn
36 days ago
Nice one. gcc/clang are smart enough to get .ok condition statically. I'm very curios how complex an expression could be.
link