lsd-ucsc/ChoRus

Can we use `std::any::TypeId` instead of `ChoreographyLocation`?

shumbo opened this issue · 0 comments

shumbo commented

Rust std has std::any::TypeId, which allows the comparison of types at runtime. Since it implements Hash, it should be possible to use this to compare type-level locations at runtime instead of ChoreographyLocation.

https://doc.rust-lang.org/stable/std/any/struct.TypeId.html

We should explore if it is possible to replace ChoreographyLocation with TypeId, list its pros and cons and implement it if it is feasible to do so.