Blogs / Personal blogs

jub0bs

jub0bs.com

Popular posts
1
Total points
150
HN comments
176
Rank
#15,949 personal

Visit jub0bs.com → RSS feedOn Hacker News Mar 2025 – Mar 2025

Software Engineering 1Programming Languages 1

1

The cost of Go's panic and recover

TL;DR ¶ Some of the wisdom contained in Josh Bloch’s Effective Java book is relevant to Go. panic and recover are best reserved for exceptional circumstances. Reliance on panic and recover can noticeably slow down execution, incurs heap allocations, and precludes inlining. Internal handling of failure cases via panic…