Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend primitive types with small fixed-size arrays #128

Open
pavel-kirienko opened this issue Apr 26, 2022 · 2 comments
Open

Extend primitive types with small fixed-size arrays #128

pavel-kirienko opened this issue Apr 26, 2022 · 2 comments

Comments

@pavel-kirienko
Copy link
Member

pavel-kirienko commented Apr 26, 2022

I found it to be often useful to have small fixed-size arrays for representation of arbitrary arrays and matrices without the array prefix:

  • uavcan.primitive.array.Real16x2 ... Real16x9
  • uavcan.primitive.array.Real32x2 ... Real32x9
  • uavcan.primitive.array.Real64x2 ... Real64x9

That would be 24 new types in total.

@thirtytwobits should we add this to the core set?

@thirtytwobits
Copy link
Member

I'm not a huge fan. This seems like syntactic sugar that the integrator should provide themselves.

@pavel-kirienko
Copy link
Member Author

The reason I want these types in the standard set is that they are generic and thus useful for building simple vendor-agnostic interfaces. An integrator could surely provide equivalent definitions but it would result in a slightly less composable solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants