antocuni / capnpy

Other
45 stars 26 forks source link

Implement default values for floats #63

Open OndrejSlamecka opened 1 year ago

OndrejSlamecka commented 1 year ago

Before this patch the compiler generates a^b which is not valid Python for floats. A motivation for implementing this (apart from satisfying the capnp specs) are systems for optional values where extremes mark None/Nothing/nullopt/...