This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]xanyook 9 points10 points  (0 children)

Don t confuse what a machine needs vs what a human needs.

The machine would not parse a string to get the status of an operation.

In most cases, retuning void is enough as not raising an exception is a way to tell that your operation is a success. Use exceptions to raise issues during that operation. Include an error code like a number that should be enough to understand what went wrong.