koinos / koinos-types

The Rosetta Stone of the Koinos ecosystem. Allows for the interpretation of Koinos data structures in a multitude of languages. Useful in the development of microservices, clients, and smart contracts.
MIT License
12 stars 3 forks source link

Default initialization of integer fields #32

Closed theoreticalbts closed 3 years ago

theoreticalbts commented 4 years ago

Currently integer fields aren't initialized in generated code. There are two ways this can be achieved:

Approach (2) will probably require extending the basetype declaration syntax to give us a way to tell the codegen "this type has this default initializer".

sgerbino commented 3 years ago

We want to use built in types where ever possible.

mvandeberg commented 3 years ago

Ran in to this bug when implementing #162

I am re-opening in support of the second solution.