This post explores how you can write and publish a library that can be used directly in Erlang without the need to install Elixir, but also provide convenient Elixir bindings.
Writing a multi-language library comes with some complexity. It therefore makes sense to ask yourself first, if the additional work & complexity is worth the effort.
Any library written in Erlang and published to Hex, can also be used in Elixir.
Instead of calling SomeModule.function(...)
, you can also call :some_module.function(...)
directly.