|
|
|
|
|
by itsuart
3945 days ago
|
|
In Haskell I use Maybe's, Either's and their ilk (packing result code in returned data I guess?), in C - your usual boolean return values like this:
bool parse_literal (ParsingState* state, LiteralValue* pResult). In Java/C# I have to use what other people are using :) My dislike of exceptions (as well as errno and Set/GetLastError) is due their masking, hiding error conditions and situations. And I prefer everything to be stated clearly. Including error handling code (answer to 'did I handled all possible failures of calling this?' should be instant). Unfortunately proper error handling is hard, nearly as much as 'naming things' :) |
|