3 ms·
This was a great overview of Elixir and how it compares to Python. My only suggestion would be, in the section about atoms, to mention that they are not garbage
by innocentoldguy 4y ago
This was a great overview of Elixir and how it compares to Python. My only suggestion would be, in the section about atoms, to mention that they are not garbage collected, so you never want to turn user input into atoms (which is sometimes tempting to new Elixir devs when making map keys).
- japhib 4y agoString.to_existing_atom is good for this use case!
- innocentoldguy 4y agoTrue, but I've seen several newcomers try String.to_existing_atom/1, get frustrated that it doesn't produce what they want, switch to String.to_atom/1, and then show up in stand-ups all proud that they "worked around the issue."