|
|
|
|
|
by andy12_
448 days ago
|
|
> defining two different return types and using the wrong one could happen in any language This specifically is the kind of bug that is avoided with strong typing. The compiler screams at you when using the wrong return type. For example, if a callback expects a Result type, you must return a Result type, not some random int-like value whose definition of success and failure is arbitrary. |
|