4 ms·
> Multiple return types. Scala has hacked around it, Python has them, Go has them. Bite the bullet and implement them so you can do sensible error handling with
by frowaway001 13y ago
> Multiple return types. Scala has hacked around it, Python has them, Go has them. Bite the bullet and implement them so you can do sensible error handling without exceptions or returning `null`.
Heh? How are these things related to each other? Who in their sane mind would use tuples for error handling?
- spiralpolitik 13y ago`Go` uses them in that manner. f, err := os.Open("filename.ext") if err != nil { log.Fatal(err) }
- frowaway001 13y agoOuch, forgot that. That's of course beyond stupid.