News for hackers. Stuff that matters.
Re:Ask HN: Who regrets choosing Elixir? by mapcars on Saturday May 23, 2020 @02:19PM (#23285108)
>Elixir doesn't have any concept of real tagged unions or sum types

What about this?

  -type int_or_str() :: {a, integer()} | {b, string()}.

There are no comments on this comment yet.