I've often found it useful to declare a LayoutType value only once as a static final field, as opposed to using LayoutType.ofStruct(...) everywhere. Doing this is ultimately less verbose, but it also shows the name of the API type instead of just the underlying type e.g. `scope.allocate(MyType_t)` vs. `scope.allocate(DOUBLE.array(2))`.
We could help users with this by generating LayoutType constants in the typedef annotation classes and struct type classes.
We could help users with this by generating LayoutType constants in the typedef annotation classes and struct type classes.