New Go developers might assume that pointers are always faster than values because copying is slow. However, it's essential to focus on writing clear and maintainable code first. While local non-pointer variables on the stack are generally faster than pointers, using pointers should be reserved for cases where a shared

4m read timeFrom blog.boot.dev
Post cover image
Table of contents
Find a problem with this article?
5 Comments

Sort: