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

export class_inherits()? #431

Open
lawremi opened this issue Aug 31, 2024 · 0 comments
Open

export class_inherits()? #431

lawremi opened this issue Aug 31, 2024 · 0 comments

Comments

@lawremi
Copy link
Collaborator

lawremi commented Aug 31, 2024

class_inherits() is a useful utility for checking whether an object satisfies a class specification. I use the term specification, because I am not sure things like a class union or class_any are really classes (both are types of unions). But the fact that it's a specification makes it different from inherits().

Should we export it? The name seems OK. In fact, it's better than inherits(), because objects do not inherit, classes do.

We could also use something like class_satisfies() to distinguish it from inherits().

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

No branches or pull requests

1 participant