Downloads

Swift

  • A generated Swift package declares an enum indirect only when its values can hold one of their own: through a constructor’s fields, options, pairs and Except values, through the inductive types those are applied to, or through a type parameter held inline (the argument may be the enum itself). An enum whose constructors hold nothing of themselves, or hold themselves only through a list, an array, a function or a structure generated as a class, is a plain enum. Code that uses the generated enums is written as before.
  • A release build of a generated Swift package no longer crashes Swift 6.4’s optimizer, which failed compiling a switch over an indirect enum whose values hold nothing of themselves.
  • The generated-packages reference says which enums are indirect.

Other changes

  • None to lungo’s commands, its runtime, or the packages it generates for Rust, C, Go, Python and TypeScript.

Download lungo