> var x = try foo(); means x is equal to the result of foo() unless there was an error in the result.
> If there was an error, return from the function with the error now.
> This meant that you don’t have the messy littering of if conditionals after every function that you
> typically get in C, but you also don’t have the complete disaster that is exceptions in C++/C#.
How is this different from exceptions?
Exiting a function immediately in case a function call fails sounds exactly like an exception.