Viewing profile — safety-second
safety-second
HN member- Joined
- Mon, Feb 03, 2020, 7:29 PM UTC
- HN karma
- 2
- Public activity
- 2 items
- HN profile
- View on Hacker News ↗
About safety-second
No profile information was provided.
Recent public activity
-
comment
Comment #22228106
You could use a File class that throws on EOF, but that would be a really bad idea for C++ since throw/catch are very expensive.
-
comment
Comment #22228074
C++ exceptions are only good if you use them like signals from C or panics in Go. This means you have to use error values for 99% of errors or you lose this benefit. The fact that …