Closed OvermindDL1 closed 8 years ago
Hey @OvermindDL1, thanks for the issue!
I am 👎 on this for a few reasons:
'complex-atom'
and everything looks like a bit of a mess IMO, I can't see the benefit over just matching on %{:foo => foo, "bar" => bar, "a key" => key ...}
there.Wdyt about this?
(Btw, closing this but feel free to reopen it if you feel my answer wasn't satisfying and want to keep the conversation going).
It is mostly an erlang library integration thing yeah, so can understand that, not a use-case most deal with. :-)
Currently there is no way to have mixed atom/string representations. Any chance on having the default format (perhaps new sigil, M maybe) be something like:
It would also be nice to be able to fallback to normal pattern matching for cases where the key is not easily turned into a variable, such as perhaps via:
Or perhaps with commas?
Using some erlang code involves interesting mixed keys, not just string or atoms. :-)