top | item 41899572

(no title)

6equj5 | 1 year ago

And you're not opposed to try-catch boilerplate?

discuss

order

stackghost|1 year ago

Boilerplate is code you have to write almost as a pro forma thing. If (in go lang, to continue my example) you're just going to keep copy pasting the same if statement to return `err` up to some higher caller, then why write all those lines when at the top level a single try/catch can remove potentially dozens of lines of code?