Go FINALLY Fixed Its Dumbest Syntax Problem

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

Go 1.26 enhances the built-in `new` function to accept expressions in addition to types, allowing developers to take the address of a value directly without needing a temporary variable or a generic helper function. Previously, passing a literal value as a pointer required either storing it in a throwaway variable or writing a

2m watch time
5 Comments

Sort: