-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cc1a4b
commit d443299
Showing
2 changed files
with
5 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d443299
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good. It's easy to reason about. If we encounter any problems in the future, we can deal with those then.
d443299
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you can tell by the big red area that this makes the system simpler. But actually nothing will make
L
strings work, since you need to escape quotes but those escape characters don't get removed, so you basically can't have quotes inL
strings. The next problem isL"\"
, and for that to work the parser would have to implementL
strings since otherwise it thinks the second quote is being escaped.d443299
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine :-). There's just some things you can't express in
L
strings — but a bunch of things that are annoying/confusing to write in other types of strings get easy to write. It's a reasonable tradeoff and relatively simple to understand. It's also handy for debugging becauseL
strings return exactly what otherstr_X
macros get as their input.