4 ms·
iferr is one of the worst warts of the language. I recently converted a Pulumi project from golang to Typescript. Code size dropped by 30% just by removing all
by nvarsj 5y ago
iferr is one of the worst warts of the language. I recently converted a Pulumi project from
golang to Typescript. Code size dropped by 30% just by removing all the iferr checks. The other thing is the compiler
doesn’t complain if you forget to check error returns - so it’s easy to make mistakes. This and lack of generics make golang incredibly verbose at times.