Radish, Keep Going!
Radish, Keep Going!
Oct 6, 2025 · Fundamentals

How Go 1.26’s new(expr) Simplifies Pointer Creation

The Go 1.26 release extends the built‑in new function to accept expressions, allowing direct allocation of pointers with initial values, which reduces boilerplate, improves readability, and introduces a more consistent syntax for developers.

Go 1.26language featurenew(expr)
0 likes · 6 min read
How Go 1.26’s new(expr) Simplifies Pointer Creation