-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
@quinnj The issue that Tables.istable can return false and the object is still a table resurfaces often. See e.g. JuliaEarth/geospatial-data-science-with-julia#3 from today.
What I propose:
- allow packages to assume that only something for which
Tables.istablereturnstrueis a table; (stricter rule) - still other packages can take anything to be a table; (loose rule)
For packages that want to follow the stricter rule it would be nice to add a method to e.g. Tables.table:
Tables.astable(t) = GenericTable(t)
where GenericTable would be a thin wrapper for which Tables.istable would return true, and all other methods would just unwrap t from GenericTable and call it.
In this way packages following stricter rule could easily distinguish between general objects that are not tables and something that user explicitly asked to be a table.
juliohmronisbr
Metadata
Metadata
Assignees
Labels
No labels