Avatar for Leon Mika
Leon Mika
Software engineer in Melbourne, Australia.
About Now Projects Archive Follow More Search
2025-08-15

Dear Go developers,

You don’t need to return pointers,
Unless you do need to return pointers.
But if you think you need to return pointers,
You probably don’t need to return pointers.

Instead, consider just returning regular struct values. Keep the nil-pointer panics at bay.

August 15, 2025 6:26am
Leon Mika Leon Mika
golang

Golang

1 backlink to this post
  • Interesting development in the world of Go: in 1.26, the new() function will now …
  • ❮ Previous Post
  • Next Post ❯