Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Elixir for Humans Who Know Python (hibox.live)
6 points by Mizza on Feb 23, 2023 | hide | past | favorite | 3 comments


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).


String.to_existing_atom is good for this use case!


True, 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."




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: