Avoiding Atomic Angst in Elixir

I write about the frustration that can occur when dealing with string and atom-based keys in maps and how to (safely) translate string-based map keys to atoms:

2 Likes

Corresponding tweet for this thread:

Share link for this tweet.

1 Like

Very interesting! We’ve had to deal with this problem at times, especially in our command enrichment in Commanded.

In fact, we use the unsafe method because it’s mostly internal and we use Vex to validate the passed parameters.

But inside the boundary, it makes perfect sense!

1 Like