Go 1.26 introduces an enhancement to the `new` built-in function, allowing it to accept expressions in addition to types. This change enables developers to create pointers to values more concisely, such as `new(42)` instead of requiring an intermediate variable. The feature works with simple types, composite values, and function call results, providing a cleaner syntax for pointer allocation and initialization.

Sort: