Re:I want off Mr. Golang’s Wild Ride (2020)
by philosopher1234 on Thursday April 28, 2022 @02:49PM
(#31196619)
I think checking for errors every line makes my go programs easier and faster to produce at a higher level of quality.
[ Parent
| on HN ]
Re:I want off Mr. Golang’s Wild Ride (2020)
by valand on Thursday April 28, 2022 @10:48PM
(#31200815)
Some languages achieve error checking by type transforms and pattern matching, which are much more effective and efficient than error checks after every function call
Re:I want off Mr. Golang’s Wild Ride (2020)
by chrisoverzero on Friday April 29, 2022 @10:20AM
(#31205479)
Sure, but is writing the error check by hand what creates the benefit? Or is it having the error check?
Re:I want off Mr. Golang’s Wild Ride (2020)
by lanstin on Saturday April 30, 2022 @03:10PM
(#31218397)
It is thinking about what to do for each operation that can fail. This thought is what separates the applications that recover when the network glitch is over vs. the applications that need to be restarted.