Skip to content

Macro for commenting out code #4122

New issue

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

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

Already on GitHub? # to your account

Closed
catamorphism opened this issue Dec 6, 2012 · 2 comments
Closed

Macro for commenting out code #4122

catamorphism opened this issue Dec 6, 2012 · 2 comments
Labels
A-syntaxext Area: Syntax extensions C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@catamorphism
Copy link
Contributor

Since nested comments aren't allowed, there's no easy way to comment out code that has comments in it. This seems like the simplest possible macro :-)

@bblum
Copy link
Contributor

bblum commented Dec 7, 2012

waah when did we lose nested comments? :(

@graydon
Copy link
Contributor

graydon commented Dec 11, 2012

@bblum A while back. They made the lexical grammar non-regular. Not worth price.

@catamorphism the ignore! macro is in already; needs to be modified to be item-able, but it does work. Closing this as .. a bit-of-a-dupe.

@graydon graydon closed this as completed Dec 11, 2012
RalfJung added a commit to RalfJung/rust that referenced this issue Feb 2, 2025
Check fixed args number for variadic function
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-syntaxext Area: Syntax extensions C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants