OpenCyphal / public_regulated_data_types

Regulated DSDL definitions for Cyphal (standard and third-party)
https://nunaweb.opencyphal.org
MIT License
71 stars 94 forks source link

Extend primitive types with small fixed-size arrays #128

Open pavel-kirienko opened 2 years ago

pavel-kirienko commented 2 years ago

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

That would be 24 new types in total.

@thirtytwobits should we add this to the core set?

thirtytwobits commented 2 years ago

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

pavel-kirienko commented 2 years ago

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.