josevalim

josevalim

Creator of Elixir

What are your concerns about a future type system for Elixir?

Hi everyone, as you may be aware, we are researching a type system for Elixir.

As preparation for my upcoming ElixirConf US talk, I would like to hear what are your concerns about Elixir adopting a type system in the future, hence this thread.

The goal of this thread is not to provide answers but simply have a general understanding of potential concerns and conflicts. Even if your concern turns out to not apply, it is important for us to know as it can be helpful material to include our guides and documentation.

I will establish some ground rules for this thread as an experiment:

  • Keep your concerns short, one to three sentences maximum. For example: “I worry the type system will make the compiler slower”.

  • Be precise if you can, avoid being too vague. For example, “I worry it will make Elixir bad” is too vague and therefore not helpful.

  • You may list at most your top three concerns.

  • Do not reply or comment on other concerns in this thread. If you agree with a concern someone else posted, feel free to “Like it” by clicking the heart button.

Let’s see how this goes, thanks. :slight_smile:


Edit1: for those who say “what about those who prefer dynamic”, I suggest to dig a bit deeper. Why would you prefer to be dynamic? Assuming that types provide values, what worries you about static types that you would rather avoid them?

Edit2: for those wondering why types and how they would impact Elixir, I have talked about this during my ElixirConf EU keynote 2022.

First Post! Switch mode

josevalim

josevalim

Creator of Elixir

Most Liked

josevalim

josevalim

Creator of Elixir

Another quick intervention: for those wondering why types and how they would impact Elixir, I have talked about this during my ElixirConf EU keynote 2022.

Also let’s please avoid categorizing people who prefer static or dynamic as X or Y. Calling part of the community noisy or trendy sounds very condescending and unproductive (it is also condescending towards Elixir maintainers, as it implies we are doing nothing more than following trends).

rvirding

rvirding

Creator of Erlang

For me the main question is: what is the actual problem they are trying to solve with static typing? Do they actually have a problem?

josevalim

josevalim

Creator of Elixir

Thank you everyone for sharing your concerns/worries. :slight_smile: If folks want to continue the conversation in a new thread, you are more than welcome! Meanwhile this is more than enough to cover the most common concerns during my presentation, thank you! :smiley:

Where Next?

Trending in Proposals Top

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
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
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement