On Saturday, 22 October 2022 at 22:25:16 UTC+2 dple...@google.com wrote:

> that the above function is much easier to read and much faster to write

True but in my opinion not relevant because:

1. Time to write a function is almost negligible compare to its
time needed for maintenance, rewrites, updates and changes.

2. The function is easier to _read_ but not necessarily easier
to _understand_ due to more implicite control flow.

I do understand your frustration. I'm annoyed myself at how
much error code I have to write, but honestly: My code is
"better" with all this explicit error handling and in the long
run I'm thankful Go forces me to do it at least halfway right
from the beginning.

V.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c594140a-75f6-495b-b0ef-e3d75dc70eb7n%40googlegroups.com.

Reply via email to