News for hackers. Stuff that matters.
Re:Switching to Elixir by whalesalad on Friday November 10, 2023 @12:05AM (#38215262)
static typing is a means to an end. if you can achieve the same end without static typing, good right? that is the goal of spec.

the creator of the language has a fantastic talk on this https://youtu.be/giYbq4HmfGA?si=LgSHZupSuR-kMXmj

Re:Switching to Elixir by magicalhippo on Friday November 10, 2023 @01:11AM (#38215629)
For me, a huge part of it is that I find static typing to make the code a lot more self-documenting.

I can easily see what is passes or returned, and if I'm unsure about the details of the type the answer is a click away, or a short web search away at worst.

Significantly reduces my mental load, allowing me to be vastly more productive.