-
Notifications
You must be signed in to change notification settings - Fork 133
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
hex-literal: allow use |
to start comment?
#813
Comments
Personally I'd prefer to keep the number of comment syntaxes to a minimum for the sake of not overcomplicating the implementation |
I agree. IIRC we declined request to support hex!(
"31 0a 32 0a 33 0a 34 0a 35 0a 36 0a 37 0a 38 0a" // 1.2.3.4.5.6.7.8.
"39 0a 31 30 0a" // 9.10.
); |
FWIW there are several things that use the existing comment syntax. I would prefer not adding churn to remove it. |
Well, Advantages of forbidding comments inside literals:
|
Since we both agree regarding the OP's proposal, I will close this issue and will open a separate one for discussing potential v1.0 release. |
It's pretty common to separates hex and ascii by
|
, this would enable copy-paste without any modification.The text was updated successfully, but these errors were encountered: