Skip to content

Conversation

@simeonschaub
Copy link
Member

Ran into issues when bisecting Julia, I think isdefined checks like these should generally be preferred over VERSION checks.

Ran into issues when bisecting Julia, I think `isdefined` checks like these should generally be preferred over `VERSION` checks.
@maleadt
Copy link
Member

maleadt commented Oct 14, 2025

I personally prefer accurate version checks because those are easier to get rid of when looking over the code at a later point (e.g. when we bump the minimum compat). Feature checks like this are likely to go unnoticed and remain present. If you don't know the exact cutoff, please add a comment indicating this is a v1.12 feature.

Copy link
Member Author

@simeonschaub simeonschaub left a comment

Choose a reason for hiding this comment

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

Ok, I added a comment mentioning this was added in 1.12. Tracking down the exact dev number has gotten a bit annoying now that LinearAlgebra has been moved into a separate repo

Co-authored-by: Simeon David Schaub <[email protected]>
@maleadt maleadt merged commit e66460b into JuliaGPU:master Oct 14, 2025
17 of 19 checks passed
@simeonschaub simeonschaub deleted the patch-1 branch October 14, 2025 12:16
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