au icon indicating copy to clipboard operation
au copied to clipboard

Support non-arithmetic Rep

Open chiphogg opened this issue 2 years ago • 2 comments

As mentioned in #38, it's not our intention to restrict Rep to built-in arithmetic types forever. This issue tracks the idea of defining a separate trait which specifies exactly which properties are needed for a valid Rep.

Note that as part of this effort, we would need to check the impact on compile times.

chiphogg avatar Dec 22 '22 21:12 chiphogg

To be clear: we already have experimental support for non-is_arithmetic Rep. Apparently, people have been using this, and it's been working fine so far. However, it would be nice to add constraints that specify exactly what a type needs in order to be a valid Rep. This could give more direct error messages for end users.

chiphogg avatar Feb 19 '23 13:02 chiphogg