refer to Result for data modelling

This commit is contained in:
Luke Boswell 2023-02-10 10:41:52 +11:00
parent e02b61c330
commit e3d9bb098c
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0

View file

@ -445,7 +445,7 @@ optional field, you'll get a compile error.
This means it's never possible to end up with an *optional value* that exists
outside a record field. Optionality is a concept that exists only in record
fields, and it's intended for the use case of config records like this. The
ergonomics of destructuring mean this wouldn't be a good fit for data modeling.
ergonomics of destructuring mean this wouldn't be a good fit for data modeling, consider using a `Result` type instead.
## [Tags](#tags) {#tags}