Conversation
Allows writing a faster decoder for optional values because you don't have to call `case_` twice to first peel off the null case and then do the actual decoding for the value.
|
Sounds good to me. I think we can do without the other predicates - I was aiming to keep the FFI footprint of this library as small as possible for portability reasons - but |
|
It's not totally obvious to me why this needed to be FFI, FWIW. a |
Allows writing a faster decoder for optional values because you don't have to call
case_twice to first peel off the null case and then do the actual decoding for the value. This came up while portingbackend-optimizerto usejsonwhere I had to add anullable:I can add predicates for other types as well if needed.
Ping @natefaubion