Do I have these string definitions right?

Generally if you are using list strings each element of the list is one codepoint as there is no need to split them into multiple “bytes”.

IIRC this is the start of the thread:

http://erlang.org/pipermail/erlang-questions/2012-October/070067.html

2 Likes

I think I finally understand why these definitions are confusing to me:

  1. Elixir defines (or copies) a chardata type
  2. That definition is dependent on a “charlist” type
  3. That charlist is not Elixir’s charlist type (which is a renaming of Erlang’s “string” type)

Do I have this right?

2 Likes