Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jenadine
7mo ago
0 comments
Share
That's why I like RAII.
0 comments
default
newest
oldest
AndyKelley
7mo ago
It's a bug to flush (fallible operation) in a destructor (infallible operation).
oconnor663
7mo ago
I know you've thought carefully about these issues, but still it can't be that simple, can it? Closing a file or a socket is a fallible operation too.
AndyKelley
7mo ago
Wrong.
1 more reply
bnolsen
7mo ago
Hidden control flow violates the zig manifesto.
j
/
k
navigate · click thread line to collapse