Foreword

This specification replaces ECMA-334:2026. Changes from the previous edition include the addition of the following features:

  • record class as an alias for record
  • record structs
  • Record types can seal ToString
  • Enhanced #line directives
  • CallerArgumentExpression attribute for diagnostics
  • Interpolated string handler
  • Constant interpolated strings
  • File Scoped Namespaces
  • Allow AsyncMethodBuilder attribute on methods
  • Assignment and declaration in the same deconstruction
  • Improved definite assignment
  • Lambda expression improvements
  • Extended property patterns
  • Global using directives
  • Improvements to structure types