mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Change docs/errors from "optional" to "default value" record fields
I strongly believe that seeing the word "optional" is priming people wrong when it comes to this feature. Especially given roc dose not have an `Optional/Option/Maybe` type, so users look for an alternative and find this. This PR changes the name to "default value record fields". It updates all docs and errors. It does not update compiler internal naming. That can be updated in a follow up PR if we want to, but I am also fine leaving it cause it is not exposed to users.
This commit is contained in:
parent
185262510c
commit
482c084096
6 changed files with 38 additions and 41 deletions
|
@ -8,7 +8,7 @@
|
|||
//! `{ b: "" }` have different derived implementations. However, it does not need to distinguish
|
||||
//! between e.g. required and optional record fields.
|
||||
//! - `Decoding` is like encoding, but has some differences. For one, it *does* need to distinguish
|
||||
//! between required and optional record fields.
|
||||
//! between required and default value record fields.
|
||||
//!
|
||||
//! For these reasons the content keying is based on a strategy as well, which are the variants of
|
||||
//! [`DeriveKey`].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue