-
Notifications
You must be signed in to change notification settings - Fork 107
[RFC] Wrap existing library #197
Copy link
Copy link
Closed
Labels
Description
This is a crazy idea that is quite far from the rough reality, but we can at least discuss/consider it here.
Spawned by discussion in #159:
The more I look at it, the more I become obsessed with an idea that euclid could just be a shim around cgmath with a few typedefs (and maybe Size?) defined. That would reduce the library fragmentation and benefit the community.
The major thing missing from cgmath is typed spaces - the U generic parameter. I suggest having a wrapper defined like type Wrap<V, U> = (V, PhantomType<U>) and defining all our unit-related operations on it, but also having it to inherit all the operations of V, just used on the same Wrap<V, U> type. This is roughly the idea to explore.
Reactions are currently unavailable