top | item 30690870 (no title) wtfishackernews | 4 years ago For json marshalling, I would defer to the underlying type's marshalling if it's present, and return `null` otherwise. discuss order hn newest shhsshs|4 years ago I think this is appropriate in some cases but not others. For example how does the JSON value distinguish between `Some(null)` and `None`? dialogbox|4 years ago IMO using Optional type means the inner value must be not null. And if it's Some(null), it should mean exactly same as None. load replies (2)
shhsshs|4 years ago I think this is appropriate in some cases but not others. For example how does the JSON value distinguish between `Some(null)` and `None`? dialogbox|4 years ago IMO using Optional type means the inner value must be not null. And if it's Some(null), it should mean exactly same as None. load replies (2)
dialogbox|4 years ago IMO using Optional type means the inner value must be not null. And if it's Some(null), it should mean exactly same as None. load replies (2)
shhsshs|4 years ago
dialogbox|4 years ago