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
It would be Really Convenient to be able to declare primitive constants (floats, ints, strings) so that these are available in cross-language contexts. Right now my project uses a bunch of janky JSON files that declare our constants and we have a Python script that generates code for them, but it would be great to sunset that and have it all done with flatc, and kept within the same flatbuffer definition file where the associated data types are defined.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It would be Really Convenient to be able to declare primitive constants (floats, ints, strings) so that these are available in cross-language contexts. Right now my project uses a bunch of janky JSON files that declare our constants and we have a Python script that generates code for them, but it would be great to sunset that and have it all done with flatc, and kept within the same flatbuffer definition file where the associated data types are defined.
For example, I was thinking syntax like:
Ideas? Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions