Skip to content

Conversation

nathanl
Copy link
Contributor

@nathanl nathanl commented Sep 4, 2024

No description provided.

@@ -60,7 +60,14 @@ Strings are always represented as themselves in the AST.

### Charlists

Charlists in Elixir are written in single-quotes, such as `'foo'`. Any single-quote inside the string must be escaped with `\ `. Charlists are made of non-negative integers, where each integer represents a Unicode code point.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this is talking about the syntax, we should mention the single-quotes version, because that's the syntax construct. The sigil construct is mentioned elsewhere. So we should either add a mention that this construct is deprecated or remove this section, but we should not rewrite it to sigils. Does that make sense? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Is the updated version good?

@josevalim josevalim merged commit 5cb8633 into elixir-lang:main Sep 6, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@nathanl nathanl deleted the charlist_doc branch September 9, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants