matt-savvy

matt-savvy

Now that the compiler is giving us some reporting about type mismatches, I’m wondering about people’s use of Dialyzer.

For anyone on Elixir 1.19+ who was already using Dialyzer:

  • Yes, and getting value from it
  • Yes, but not seeing the value from it
  • No longer using it
  • We use it at work but I don’t use it on my own projects
0 voters

Edit: Added Poll

Showing Posts 1 to 4

michallepicki

michallepicki

Before Elixir typechecker gets its function type annotations syntax, the main reason to still use Dialyzer is to be able to document interfaces with argument and return types, and have these contracts (at least partially) checked by Dialyzer

belaustegui

belaustegui

I use type specs in my personal projects and at work, but only as an additional piece of documentation.

Dialyzer is not present to validate this. In my experience it has never provided much value (never found a bug that was actually causing trouble) and requires a lot of handholding.

I hope that once the native Elixir type annotation syntax is released, it will be reasonably easy to convert from the current typespecs with some LLM assitance.

ChaseGilliam

ChaseGilliam

We use it, but I’ve wrapped incremental dialyzer from OPT26 into a new library assay | Hex that is much faster in CI. It also has slightly more readable errors/diffs. It may go away as Elixir’s own type checking improves, but there are still a lot of places where dialyzer uncovers real issues.

dimitarvp

dimitarvp

I do use it and get value out of it but it’s mostly about stale function contracts. On the rare occasion it also surfaces a possibility for a function raise instead of returning its contractual values i.e. the puzzling “function X has no local return” message.

Those two are valuable enough on their own so I still use Dialyzer.

— All posts loaded —

Where Next? Top

Trending in Polls Top

New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews