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

Add doc comments about why symbol_short! #1064

Merged
merged 4 commits into from
Aug 25, 2023
Merged

Conversation

leighmcculloch
Copy link
Member

What

Add doc comments about why symbol_short! is preferred over Symbol::short.

Why

The behavior of const functions when called in non-const-contexts is not well known, as has been evidenced by the many times folks have asked why we have symbol_short!, and the case where symbol_short! was removed with folks assuming it was of no use. For example: #1043 (comment). Adding docs to knowledge share.

@leighmcculloch leighmcculloch marked this pull request as ready for review August 22, 2023 01:17
@leighmcculloch leighmcculloch enabled auto-merge (squash) August 24, 2023 23:38
@leighmcculloch leighmcculloch merged commit 535a9dd into main Aug 25, 2023
12 checks passed
@leighmcculloch leighmcculloch deleted the hexacolic-britishness branch August 25, 2023 05:43
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.

2 participants