Gleam v1.4.0 Features:
- Shorthand Syntax for Labels: Allows omitting variable names when they match labels in function calls, record fields, and pattern matching.
- Label Shorthand Code Action: An editor code action to convert to shorthand syntax.
- Adding Labels Action: Automatically adds labels that a call accepts.
- Label Access Completion: Supports completion of labelled record fields in the language server.
- Signature Help: The language server shows function documentation and highlights the next argument to supply.
- Unmistakable Warnings: Warnings are emitted each time the project is built, ensuring they are not missed.
- Targeted Documentation:
gleam docs build
now takes a--target
flag. - Even More Fault Tolerance: The compiler retains more information in the presence of errors.
- Help for a Common Type Definition Mistake: Displays custom error messages for incorrect type definitions.
- Constant Concatenation: The
<>
operator can be used in constant expressions. - More JavaScript Bit Array Support: Adds support for various bit array options in JavaScript.
- Document Symbols: The language server supports listing document symbols in Gleam files.
- Case Correction: The language server suggests code actions to adjust case.
- Assert to Case: Converts
let assert
tocase
andpanic
expressions.
- Thanks and Support: Acknowledges contributors and calls for support as Gleam has no corporate backing.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。