|
|
|
|
|
by marcosdumay
854 days ago
|
|
> did you know that the most common (and accepted?) way to communicate exceptions in C# is via doc comments written manually by humans. Well, the accepted way to communicate them in Python is "we don't". I think C++ follows that same principle, but the ecosystem is extremely disconnected, so YMMV. Java tried to do a new and very good thing by forcing the documentation of the exceptions. But since generics sucked for the first ~20 years of the language, and nobody still decided to apply them to the exceptions, it got bad results that discouraged anybody else from trying. |
|
So thinking in terms of failure handling is the way to go.