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

Adopt Base's annotated types/functions as API #81

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

tecosaur
Copy link
Collaborator

@tecosaur tecosaur commented Aug 11, 2024

This opens the door to shuffling parts currently implemented in Base into this stdlib without breaking any public APIs.

To try to help avoid people using Base.Annot... anyway, I've exported these bindings. I think this is reasonable given unlike in Base this library needs to be deliberately imported.

@tecosaur
Copy link
Collaborator Author

This change has been discussed with other maintainers on Slack (the API shift, but not the exporting), so I'm inclined to merge this soon if I can figure out how to make doctests happy.

Copy link
Member

@topolarity topolarity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @tecosaur

@tecosaur tecosaur force-pushed the api-adoption branch 2 times, most recently from d1d62bc to 1beedda Compare August 23, 2024 15:15
@tecosaur
Copy link
Collaborator Author

tecosaur commented Sep 4, 2024

This is held up by difficulty figuring out the Documenter side of things.

@tecosaur
Copy link
Collaborator Author

It's hard to see how I can make this work before JuliaDocs/Documenter.jl#1781 is resolved 😬.

Perhaps @mortenpi might have an idea?

@tecosaur
Copy link
Collaborator Author

In light of JuliaLang/julia#55845 and the change Kristoffer's just pushed it seems like neither of us can easily make Documenter do what we want here, so let's just leave the documentation of the Base-defined types there with an appropriate notice.

I think all that needs to be done now is the @ref StyledStrings.Annotated... changes to be reverted back to @ref Base.Annotated... in this PR (it currently produces 404 links), and then we can merge it and stop being a 1.11 blocker.

This opens the door to shuffling parts currently implemented in Base
into this stdlib without breaking any public APIs.

It would be nice to actually show the relevant Annotated* docstrings,
but unfortunately due to
JuliaDocs/Documenter.jl#1781 it's a bit
difficult to actually do so. We should re-visit this later.
@tecosaur
Copy link
Collaborator Author

I don't think there's anything else that needs changing?

@tecosaur tecosaur merged commit d9d7472 into main Oct 1, 2024
5 checks passed
@tecosaur tecosaur deleted the api-adoption branch October 1, 2024 15:32
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