chiprook
← Software
SoftwareOctober 15, 2026, 06:02

Go 1.26 lets new() take an expression, making pointer helpers obsolete

Go 1.26, released on February 10, 2026, allows the built-in new() to accept an expression rather than only a type, so new(42) and new(time.Now()) now compile. This lets developers delete custom pointer helpers like ptr[T], StringPtr and utils/pointer.go, with go fix -newexpr rewriting call sites automatically.

Go 1.26 lets new() take an expression, making pointer helpers obsolete
#Go
Read next
Gaming

Supermassive Games Layoffs Begin, Over 70 Staff Reportedly Let Go

Business

Meta lets go of employees hired from AI safety startup Virtue AI

Security

Cohesity Agent Resilience Lets Companies Roll Back AI Agents That Go Wrong

Gaming

Guild Wars 3 dev wants you to be able to take a break for months at a time and know you're 'not going to be left behind'