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

ddoc/source/assert_writeln_magic: Add a new "// no-writeln" syntax #3801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CyberShadow
Copy link
Member

This allows adding this comment to a line to disable any rewriting done by this module, other than removing said comment.

dlang/phobos#8975 (comment)

This allows adding this comment to a line to disable any rewriting
done by this module, other than removing said comment.
@CyberShadow CyberShadow requested a review from wilzbach as a code owner April 8, 2024 10:42
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @CyberShadow!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

@dkorpel
Copy link
Contributor

dkorpel commented Apr 8, 2024

This works, but any new contributor encountering

assert(fun() == 2); // no-writeln

Will have no idea what that comment means, and may be tempted to remove it. I wish there is a cleaner solution.

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

Successfully merging this pull request may close these issues.

3 participants