Skip to content

Conversation

@Keno
Copy link
Contributor

@Keno Keno commented Feb 3, 2026

Default to the syntax version of the module that contains the doctest (so that upgrading julia version doesn't break doctests if they use old syntax) but provide an explicit override so that in principle one could document previous syntax (e.g. to demonstrate how to use something if the user syntax is older than the package syntax). I don't think that'll come up all that often (except for possibly in base), but might as well have the facility.

Default to the syntax version of the module that contains the doctest
(so that upgrading julia version doesn't break doctests if they use
old syntax) but provide an explicit override so that in principle one
could document previous syntax (e.g. to demonstrate how to use something
if the user syntax is older than the package syntax). I don't think
that'll come up all that often (except for possibly in base),
but might as well have the facility.
Copy link
Collaborator

@fingolfin fingolfin left a comment

Choose a reason for hiding this comment

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

Thanks that looks pretty good. Some minor nitpicks in comments. Also, this needs a changelog entry.

@Keno
Copy link
Contributor Author

Keno commented Feb 6, 2026

@fingolfin Good to go?

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