Skip to content

Conversation

@chiphogg
Copy link
Member

@chiphogg chiphogg commented Aug 6, 2025

Bad news: check(TRUNCATION_RISK) won't work if the user's namespace
has a check namespace. Aurora does; that's how I found out.

Not a huge deal: we can rename check() to check_for(). This isn't
quite as concise, but it reads very nicely, and is extremely unlikely to
be a namespace anywhere out in the wild (which I think is also true of
ignore.

Follow-up to #387.

Bad news: `check(TRUNCATION_RISK)` won't work if the user's namespace
has a `check` namespace.  Aurora does; that's how I found out.

Not a huge deal: we can rename `check()` to `guard_against()`.  This
isn't quite as concise, but it reads very nicely, and is extremely
unlikely to be a namespace anywhere out in the wild (which I think is
also true of `ignore`.

Follow-up to #387.
@chiphogg chiphogg changed the title Rename check() to guard_against() Rename check() to check_for() Aug 9, 2025
@chiphogg chiphogg requested a review from hoffbrinkle August 11, 2025 19:13
@chiphogg chiphogg merged commit f9946c2 into main Aug 12, 2025
14 checks passed
@chiphogg chiphogg deleted the chiphogg/guard_against#387 branch August 12, 2025 01:20
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.

3 participants