by bongobingo1 · 3y ago · 0 comments
Do you think we'll end up writing
$ integer() -> integer()
@spec inc(integer) :: integer()
def inc(i), do: i + 1
or can the new type system be entirely expressed in `@spec` (perhaps with a slightly upgraded syntax), or perhaps we'll have the choice of @spec or $ (or @spec2.0, whatever).Additionally, do you feel there is any chance/desire/need of this bleeding up into Erlang? I can only assume the work done mapping the type system onto elixir would not require as much work to then map to Erlang if there were any interest.
And yes, the semantics should map 100% cleanly to Erlang.