Conversation
ararslan
left a comment
There was a problem hiding this comment.
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_stacktracemethod_existstohasmethodobject_idtoobjectid