Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify escaping of backslash in String #64

Closed
DainTrain opened this issue Jan 12, 2025 · 2 comments
Closed

Clarify escaping of backslash in String #64

DainTrain opened this issue Jan 12, 2025 · 2 comments

Comments

@DainTrain
Copy link
Contributor

In section 9.2 Common Escape Sequences, an example is given of assigning the literal ¯\_(ツ)_/¯ to a String. The text says "you need to escape the first backslash." However, there is only one backslash in that literal, and the text misses out an on opportunity to clear up confusion as to the difference between forward slash and backslash.

Naturally this is low priority and somewhat pedantic, but I have noticed in my experience that even professional devs get backward and forward slashes mixed up, and therefore I think a brief note saying something to the effect of "the slash toward the end is a forward slash and does not need to be escaped because it is not a special character in a String" would help beginners

@bowbahdoe
Copy link
Collaborator

heard. will address this next time i do a batch of work

@bowbahdoe
Copy link
Collaborator

Handled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants