AlgebraicJulia / ACSets.jl

ACSets: Algebraic databases as in-memory data structures
https://algebraicjulia.github.io/ACSets.jl/
MIT License
19 stars 8 forks source link

Index all homs in a schema when using `@acset_type` #127

Open slwu89 opened 7 months ago

slwu89 commented 7 months ago

Programmer QoL feature, it would be nice to do something like @acset_type MyType(MySch, index=true) to indicate that all homs in the schema should be indexed.

EDIT: not sure how necessary this is, as one can do @acset_type MyType(MySch, index=nameof.(generators(MySch,:Hom)))

epatters commented 7 months ago

I think it would still be a nice convenience feature, as it comes up fairly often. PR welcome.