latex3 / latex3

The expl3 (LaTeX3) Development Repository
https://latex-project.org/latex3.html
LaTeX Project Public License v1.3c
1.9k stars 184 forks source link

`\prop_put_if_new:Nnn` vs `\prop_put_if_not_in:Nnn` #1511

Closed muzimuzhi closed 6 months ago

muzimuzhi commented 6 months ago

Would \prop_(g)put_if_not_in:Nnn be easier to understand than the current \prop_(g)put_if_new:Nnn?

We have \<type>_if_in:Nn(TF) and all other occurrences of "new" in l3kernel function names are verb-like: new, new_conditional, (g)clear_new, (g)zero_new.

FrankMittelbach commented 6 months ago

My initial reaction would be yes, it seems easier to understand as I wouldn't perceive a "key" as an object and it also fits better with \prop_if_in:NnTF.

josephwright commented 6 months ago

Make a PR?