7 hours ago
- Go 1.27 introduces type parameters on methods, allowing generic operations on types to be defined as methods instead of package-level functions.
- Struct literal keys can now use promoted fields from embedded structs directly, simplifying initialization syntax.
- Function type inference is generalized to work in conversions, composite literals, and other contexts, reducing the need for explicit type arguments.
- The compiler generates size-specialized memory allocation routines for small allocations (under 80 bytes), improving performance by up to 30% with minimal binary size increase.