Skip to content

Rename isleaftype #17086

@omus

Description

@omus

While re-reading the manual I realized that isleaftype should probably be renamed to either isconcretetype or isconcrete:

julia> abstract Foo

julia> abstract Bar <: Foo

julia> type Baz <: Foo
       end

julia> isleaftype(Bar)  # One could consider Bar a leaf type but not concrete
false

julia> isleaftype(Baz)
true

The documentation for isleaftype does clearly explain it returns true for concrete types which seems like the function name is slightly misleading.

Metadata

Metadata

Assignees

Labels

speculativeWhether the change will be implemented is speculative

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions