Flatbuffers has a struct type, in addition to the more general table, which is just a table with a bunch of extra limitations.
This makes sense in the context of Flatbuffers' generated code as it allows for important optimizations, but doesn't bring much in our case, except confusion, compiler complaints and "more than one way to do things".
We should prevent the use of struct in our IDL, and use table everywhere instead.
Flatbuffers has a
structtype, in addition to the more generaltable, which is just atablewith a bunch of extra limitations.This makes sense in the context of Flatbuffers' generated code as it allows for important optimizations, but doesn't bring much in our case, except confusion, compiler complaints and "more than one way to do things".
We should prevent the use of
structin our IDL, and usetableeverywhere instead.