The traditional new(T) creates a pointer to a zero value of T. Go 1.26 also accepts new(expr), creating a variable initialized from the expression and returning its address.
The demo evaluates 42, points to it, and puts the pointer into an optional field. This is useful when a temporary variable existed only to take its address.
When to use
Use it to populate optional pointer fields in serialization structs without a temporary variable.