Re:The Joy of Erlang; Or, How to Ride a Toruk (2011)
by ramchip on Tuesday November 28, 2017 @07:17PM
(#15803337)
I don’t think you can realistically use Phoenix without doing at least some Elixir, because it uses macros quite heavily, and you can’t call those from Erlang.
Re:The Joy of Erlang; Or, How to Ride a Toruk (2011)
by Tomte on Tuesday November 28, 2017 @04:02PM
(#15801577)
Phoenix without Elixir sounds interesting! Do you have a blog post or some other documentation at hand?
Re:The Joy of Erlang; Or, How to Ride a Toruk (2011)
by lightbyte on Wednesday November 29, 2017 @02:09PM
(#15809794)
I don't know of any specifically, sorry. But you can use elixir modules by just prefixing them with `Elixir.` in erlang. So to call the phoenix module in erlang you'd just do a regular function call to 'Elixir.Phoenix':xxx
One of the best parts about Elixir/Erlang/other BEAM languages is that you can use something like the Phoenix framework in your erlang project just fine. You do not need to learn Elixir if you want to use any of the neat stuff developed in it.