Pdefn vs. Pbindef

Hi -

I wanted to understand the application differences between Pbindef and Pdefn a little better.
At the moment, my main understanding is that a Pdefn can very easily be fit inside of a Pbindef, which is convenient for a whole host of reasons…but I do not understand if there are any overall advantages or things that one can do that the other exclusively cannot. Any insights would be appreciated, thanks.

1 Like

Pdefn is for values only. So you can use it to modify a single value of any Pbind key without having to reevaluate the hole Pbind, leaving the rest of the keys intact.

For what I understand, when reevaluating Pbindef, all the patterns in the keys are reset, while reevaluating a Pdefn only resets the given pattern defined by it, the rest of the patterns in the Pbind continue without being reset.

Documentation seems to say otherwise: “Pbindef keeps a reference to a Pbind in which single keys can be replaced…”

hjh

1 Like