-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Description
hasproperty is implemented as:
hasproperty(x, s::Symbol) = s in propertynames(x)If one wants to check hasproperty for a private name (such as a non-public name in a module), they currently need to do s in propertynames(x, true). This change would allow hasproperty(x, s, true) instead, which is otherwise unintuitive until one looks at the implementation for hasproperty.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels