Gleam v1.6.0 Features:
- Context aware errors: Errors now use module names and syntax, making them more understandable. E.g.,
Ordertype is qualified with module name. - Context aware editing hovering: Hovering over code shows type information with appropriate names and syntax.
- Add annotations code action: Allows adding type annotations to make code easier to read.
- Erlang compilation daemon: Boots one Erlang VM instance and sends code for compilation, reducing build time.
- Variant inference: Compiler infers and tracks custom type variants, improving exhaustiveness checking, etc.
- Precise dependency updates: Can update specific dependencies instead of all.
- Monorepo documentation links:
gleam.toml'srepositoryconfig can include apathfor correct documentation links in monorepos. - Result handling hints: Compiler suggests pattern matching on
Resultvalues. - Optional dependencies are now optional: Correctly handles optional dependencies in Gleam.
- Optimised bit arrays: Richard Viney optimized bit array implementation on JavaScript, making it 2 to 40 times faster.
- Unsafe number warnings: Emits warning for integer literals outside JavaScript's safe integer range.
- (un)qualification code actions: Automates qualifying or unqualifying types and values in a module.
- JavaScript project creation:
gleam new myapp --template javascriptcreates a new JavaScript-configured project.
- Context aware errors: Errors now use module names and syntax, making them more understandable. E.g.,
- Support Call: Gleam is supported by sponsors. The developer earns less than the median salary of a tech lead in London and relies on Gleam for income. Please support the project on GitHub Sponsors.
- Thank Yous: Thanks to many contributors for bug fixes and error message improvements. See the changelog for details. A long list of supporters is also mentioned.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用。你还可以使用@来通知其他用户。