After version 1.2.x of Elixir, we have in
IEx.Helpers module the
My problem is:
Detail: I’m using Phoenix framework.
I have a
User module, but without constant the genres. I need a constant the genre with male and female gender.
When start the console with:
iex -S mix phoenix.server, I see that it lacked the constant of the genres, and it will be very laborious every time that you have any changes in the code you have to drop the
iex and raise again to recompile everything again.
Searching found some monkey patches to solve this, but the elixir already has it native. And it’s beautiful not to have this job.
When you have to make change and the
iex already started, just call the
1 2 3 4 5 6
iex -S mix phoenix.server
1 2 3
1 2 3 4 5 6 7 8 9 10 11 12
I do not leave the
iex console, then I run
1 2 3
And then just call the function that takes the constants.