-
Notifications
You must be signed in to change notification settings - Fork 352
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Currently in the language reference the following solution for removing fields is recommended:
// https://pkl-lang.org/main/current/language-reference/index.html#transforming-objects
dodo {
name = "Dodo"
extinct = true
}
dodo
.toMap()
.remove("name")
.toDynamic()Instead, create a built-in singleton value absent (similar to null), which would remove the corresponding member from the object:
dodo {
name = "Dodo"
extinct = true
}
dodoWithoutName = (dodo) {
name = absent
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
No status