-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Feature Request] Use @doc_private
on initializers from MLIR types to hide them from the API docs
#3563
Comments
+1 thank you for filing this! This would be a great improvement to make MLIR stuff an implementation detail. We should also look for the |
@lattner Actually, we already have a decorator I don't think making the arguments keyword only is that good though. Having implicit conversion in this case can be quite useful. |
Oh nice, I didn't realize we had |
Yeah, we should more liberally apply |
@doc_private
on initializers from MLIR types to hide them from the API docs
A simple grep like `git grep 'mlir' stdlib | grep -i 'fn init' should find all the ones to go chase down if anyone is interested. |
Hi @JoeLoser , I started working on this issue, could you assign it to me? thanks 🚀 |
Done, thanks for starting on this! |
Review Mojo's priorities
What is your request?
As title. Suggested by @lattner on Discord.
More concretely, we should change
to
What is your motivation for this change?
So we can hide them in docgen or maybe intellisense to avoid, well, this:
Any other details?
We lose implicit conversion from MLIR values this way, I don't know how important that is.
The text was updated successfully, but these errors were encountered: