Comment by apaprocki
13 hours ago
In C++ you would have a protected constructor and related friend utility class to do the parsing, returning any error code, and constructing the thing, populating an optional, shared_ptr, whatever… don’t make constructors fallible.
No comments yet
Contribute on Hacker News ↗