-
Notifications
You must be signed in to change notification settings - Fork 33
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 orclass_any
are really classes (both are types of unions). But the fact that it's a specification makes it different frominherits()
.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 frominherits()
.The text was updated successfully, but these errors were encountered: