When you ask a bot to write code to use an API you see what is confusing. When...
When you ask a bot to write code to use an API you see what is confusing.
When a bot expects an exception to happen, it has no idea if it should quietly return a neutral value or throw an exception.
I think this is a language level problem as seen by the wildly different experiments:
- vb - on resume next, all errors are ignored
- java - all errors must be caught even if you don't know what to do
- c/c++ - all errors will crash as much of the computer as possible
Self-replies
And I don't know which languages support this, but the "all methods return a union of the good value and the error value and all method calls must have a pattern matcher control flow" - sort of like java's checked exceptions.