mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
Member deletion #171
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EugZol on GitHub (Jun 24, 2024).
Currently in the language reference the following solution for removing fields is recommended:
Instead, create a built-in singleton value
absent(similar tonull), which would remove the corresponding member from the object:@HT154 commented on GitHub (Jun 30, 2024):
Something similar has been discussed in the past using the
deletekeyword in the context of member predicates for amending Listings/Mappings. In terms of naming, I'm personally partial toomit, which is what Ansible uses for a similar action.