Hash deletion shortcut GitHub issue

vibecode
{"vibecode": {
    "doc": "hash-deletion-shortcut",
    "role": "speculative ergonomics note exploring shorter syntaxes for hash deletion (-=, -[...], delete keyword, chained .delete); canonical $hash.delete($key) stays in v1",
    "key_concepts": ["hash_deletion_ergonomics", "minus_equals_candidate",
        "set_difference_analogy", "not_in_v1"],
    "status": "brainstorm"
}}

Speculative — filed for future consideration. The canonical form is $hash.delete($key); this idea is about whether a shorter syntax would carry its weight.

Candidates GitHub issue

Recommendation (not committed) GitHub issue

$hash -= $foo is the cleanest; the batch form falls out for free and the syntax has set-theory roots that scale to other collection types if wanted.

Status GitHub issue

Not in v1. The standard $hash.delete($key) covers the use case; this is purely about ergonomics. Revisit if hash deletion proves to be a hot enough operation in real code to justify dedicated syntax.

© 2026 Puck.uno