
"With this release, the @external annotation is now supported for external types, giving the programmer a way to specify an Erlang or TypeScript type definition to be used, according to Gleam creator Louis Pilfold. Gleam's external type feature is used to declare an Erlang or JavaScript type that can be referenced in Gleam, but because the type originates from outside of Gleam, the Gleam compiler cannot produce a precise definition in generated Erlang or TypeScript type definitions."
"Instead, the compiler had to fall back to the correct but vague "any" type of each language. Also enhanced in Gleam 1.14.0 is inference-based pruning, an optimization that improves performance and detects more redundant patterns when pattern matching on binary data."
Gleam 1.14.0, released December 25, enhances support for external types on the Erlang VM and JavaScript runtimes. The @external annotation is now supported for external types, enabling programmers to specify an Erlang or TypeScript type definition to be used. External types allow referencing Erlang or JavaScript types from Gleam, but previously the compiler produced vague generated definitions that mapped to each language's "any" type. The release also expands inference-based pruning, an optimization that improves performance and detects redundant patterns when pattern matching on binary data, now working with int segments. The update is available on GitHub.
Read at InfoWorld
Unable to calculate read time
Collection
[
|
...
]