[erlang-questions] Best Practice in Map keys: Atoms or Binaries (or Strings)?

Leo Liu sdl.web@REDACTED
Mon Oct 3 05:14:18 CEST 2016


On 2016-10-02 19:31 +0300, Max Lapshin wrote:
> It is convenient to use from erlang, but we have to transform it to
> JSON.

I have a similar situation and mixing atoms and binaries can be
confusing so I stick to binaries. Not much inconvenience besides having
to type the 6 chars <<"">> (which is solvable at the IDE level).

Leo



More information about the erlang-questions mailing list