上下文感知编译

  • Gleam v1.6.0 Features:

    • Context aware errors: Errors now use module names and syntax, making them more understandable. E.g., Order type 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's repository config can include a path for correct documentation links in monorepos.
    • Result handling hints: Compiler suggests pattern matching on Result values.
    • 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 javascript creates a new JavaScript-configured project.
  • 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.
阅读 14
0 条评论