tail_exchange
Joined 5 years ago
Karma
649
Submissions
234
Member since
Dec 4
Joined 5 years ago
Edit: I do love the analog buttons in the interior though. I despise those big screens with all the controls, and no tactile feedback.
If I had a magic wand, the only things I would add is better nulability checks, add stack traces by default for errors, and exhaustive checks for sum types. Other than that, it does everything I want.
Maybe that's also what will happen with AI investors when the bubble pops or deflates.
result := InvokeWithErrorLogger(
func (err error) { // Error handler
incrementMetric("foo")
log.Error("bar")
},
addTwoNumbers, a, b,
)
But the problem is that this approach is not better than just writing this, which doesn't need any new fancy addition to the language: result, err := addTwoNumbers(a, b)
if err != nil {
incrementMetric("foo")
log.Error("bar")
return fmt.Errorf("addTwoNumbers(%d, %d) = %v", a, b, err)
}
Hence why all the proposals ended up dying with the lack of traction.