Elixir 1.19 Released
14 hours ago
- #Type System
- #Compilation
- #Elixir
- Elixir v1.19 introduces enhanced type checking and broader type inference, including improvements for anonymous functions and protocols.
- Type inference now covers all constructs (except guards), considering function calls within the same module and Elixir's standard library.
- New warnings are emitted for protocol dispatch violations, such as incorrect types in string interpolation or for-comprehensions.
- Anonymous functions now support type inference and checking, with warnings for type mismatches.
- Compilation times are significantly improved, with up to 4x faster builds for large projects due to lazy module loading and parallel dependency compilation.
- Support for Erlang/OTP 28 includes new regular expression representations and struct escape callbacks.
- Elixir v1.19 is OpenChain compliant, featuring Source SBoM (Software Bill of Materials) for greater transparency in supply chain requirements.
- Additional improvements include better option parsing, ExUnit debuggability, and new mix help commands for documentation access.