We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Integrating Elixir Structs with Erlang
145
clicks
Source: youtube.com
Robert Virding, an Erlang enthusiast, explores the difficulties of utilizing Elixir's rich package ecosystem from Erlang due to the lack of direct support for Elixir structs in Erlang. Virding presents a method he has been experimenting with that allows for the creation and manipulation of Elixir structs within Erlang code. He demonstrates how to define a simple Elixir module with structs, and using include files and parse transformation, enables the construction and pattern-matching of these structs from Erlang. The solution showcased does not involve adding new syntax to Erlang but utilizes macros to mimic the structure syntax of Elixir. Although it's still a work in progress, particularly with output formatting, the method allows for bidirectional struct usage between Elixir and Erlang, addressing one of the hurdles in running Elixir from Erlang.
Related posts
© HashMerge 2024