Stream: ideas

Topic: FAQ entry about Maybe/Option/Optional


view this post on Zulip Aurélien Geron (Aug 26 2026 at 23:33):

The FAQ entry about Maybe... should probably mention records with optional fields. I started writing a blurb, but I wasn't actually sure what to say. The FAQ says that Maybe is bad because it isn't explicit about the reason why the data is missing, but Err(MissingField) has the same issue, doesn't it?

view this post on Zulip Jared Ramirez (Aug 27 2026 at 09:27):

when working on optional records, i also thought about this! i considered trying to capture the field name with Missing(Str) (not great because matching on str is non exhaustive) and Missing([MyFieldName]) (not clear how to derive field names consistently across all variations, eg casing)


Last updated: Sep 03 2026 at 15:16 UTC