Keys in maps can be accessed through some of the functions in this module (such as Map.get/3 or Map.fetch/2) or through the map[] syntax provided by the Access module
Are there any pros/cons for using one over another? I mean especially in situations where the result would be the same. Also any performance / resource usage implications of using one over another?
Map.get/2 is more chill and will be like hey uh I couldn’t find anything here’s nil - or give you a default. Like asking your wife for your Tom Ford sunglasses and honey if you can’t find it just grab me my Raybans no big deal.
I updated the question a bit to make it more explicit about what I ask about. I know the different usage possibilities. It is more about when I have a map and want to access existing/non-existing keys (without supplying own default to override the normally returned nil). IOW situations where Map.get and Access behave seemingly the same.