2 ms·
They can be implemented as a library C++ thanks to templates and user-defined literals, and there's a proposal to add them to stdlib based on one of the existin
by int_19h 4y ago
They can be implemented as a library C++ thanks to templates and user-defined literals, and there's a proposal to add them to stdlib based on one of the existing implementations: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1935r2.html https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p19...
- kwhitefoot 4y agoYou can implement it in C# too with zero run time cost.
- int_19h 4y agoI don't see how, except for manually rolling a struct for every new combination of units. The C# generic system is not flexible enough to define things like "m / s / s = (m/s^2)".