
96: Reviewing Elixir with José Valim - Part 4
Thinking Elixir Podcast
00:00
Elixir - Is a Map Key a Guard?
Elixir 1.10 added the is struct and is map key features to its guards. This means you can only pattern match in a map a key that was pre-existing. It also allowed us to add other features later, which is in receives. So when you do a receive, you want to get a message out of the inbox. Before there were no easy way of doing this. I have to check, but I'm almost sure that task awake many is one of the things that came out with this.
Transcript
Play full episode