sabiwara
Re:Elixir v1.20 released: now a gradually typed language
on Thursday June 04, 2026 @06:02AM (#48396405)
> Does Dialyzer understand Elixir? Last I knew, it could only process Erlang source code and BEAM files.
Once compiled, it boils down to BEAM files that Dialyzer can understand, yes. And the [Dialyxir](https://dialyxir.hexdocs.pm) wrapper helps translating error messages in Elixir. But, there is a significant limitation compared to plain Erlang: Elixir protocols (which are quite used in core parts of the language) are not an Erlang construct, so Dialyzer will be clueless about them, just accepting any term. Enum.map(nil, & &foo/1) or to_string(%{}) will be invisible to it.
Re:Elixir v1.16 Released
on Saturday December 23, 2023 @07:00PM (#38749544)
It is listed in the release notes as "[Kernel] Auto infer size of matched variable in bitstrings".
You can now just match on `^var <> rest` or `<<^var::binary, rest::binary>>` without having to explicitly pass the size: `<<^var::binary-size(byte_size(^var)), rest::binary>>`.
You can find more examples in the PR https://github.com/elixir-lang/elixir/pull/13106.