You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this chapter, we will gain clarity on what exactly binaries are, how they relate to strings, and what single-quoted values, `'like this'`, mean in Elixir. Although strings are one of the most common data types in computer languages, they are subtly complex and are often misunderstood. To understand strings in Elixir, we have to educate ourselves about [Unicode](https://en.wikipedia.org/wiki/Unicode) and character encodings, specifically the [UTF-8](https://en.wikipedia.org/wiki/UTF-8) encoding.
says
and what single-quoted values, 'like this', mean in Elixir.
Later in the charlist section only ever ~c"foo" are mentioned.
Expected behavior
Either update the docs to also only refer to ~c"foo" syntax in intro, or copy-pasta the info box from the "lists and tuples" page (
> In Elixir, you can also use `'hello'` to build charlists, but this notation has been soft-deprecated in Elixir v1.15 and will emit warnings in future versions. Prefer to write `~c"hello"` instead.
)
The text was updated successfully, but these errors were encountered:
Elixir and Erlang/OTP versions
1.15+, but this only pertains the docs
Operating system
all
Current behavior
elixir/lib/elixir/pages/getting-started/binaries-strings-and-charlists.md
Line 12 in 7890e56
says
Later in the charlist section only ever
~c"foo"
are mentioned.Expected behavior
Either update the docs to also only refer to
~c"foo"
syntax in intro, or copy-pasta the info box from the "lists and tuples" page (elixir/lib/elixir/pages/getting-started/lists-and-tuples.md
Lines 73 to 75 in 7890e56
The text was updated successfully, but these errors were encountered: