e.g. pictures this:
def some_operation(var) -> (bool, String):
return False, "This is a test"
success, error_message = someOperation("aVar")
if not success:
print(error_message)
I feel there must be a way to do something in one line that prints msg if err == false. If there were defined you could do
`success or print(error_message)`
Maybe some sort of wrapper or lambda helper to take the method call that returns the two element tuple?