You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
teh-cmc
changed the title
Forbid the use of flatbuffers structs altogether in our IDL?
Forbid the use of flatbuffers structs altogether in our IDL
Jun 26, 2023
Flatbuffers has a
struct
type, in addition to the more generaltable
, which is just atable
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 usetable
everywhere instead.The text was updated successfully, but these errors were encountered: