Comment

Comment by JohnHaugeland

> In typescript, you can have abstract classes or interfaces to implement

In erlang these are called "behaviours"

.

> I was relying on documentation for that

Consider reading the Erlang documentation. The Elixir people really don't understand Erlang very well, and are trying to manufacture Ruby on top of a language that already gives them solutions to their problems that they just can't see.

.

> If there was a way to say use @some_spec and get information about it in the editor. It would have helped out.

Basically every IDE that speaks Erlang knows behaviors. They're as fundamental to the language as header files are to C/C++.

Elixir tried to "do away with them" because Elixir thinks they're "confusing" but they're actually really important tools.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton