-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
remove some underscores #25615
remove some underscores #25615
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks! I especially like hasmethod
.
+1 in general, but I'm not sure I like |
The function has the method. |
Actually, I agree this is a bit weird. Functions don't have methods. The global MethodTables has methods, with symmetric dispatch across all arguments (including the first argument, which in many cases is a Function). |
In generic function systems, functions are traditionally considered sets of methods. True, that's not exactly how it works in julia, but the query We could also have a 1-argument version, e.g. |
Part of #20402.
catch_stacktrace
method_exists
tohasmethod
object_id
toobjectid