Am 17.12.2019 um 00:45 schrieb Allin Cottrell:
On Mon, 16 Dec 2019, Sven Schreiber wrote:
> quite often in some packages we just want to quickly copy a bunch
of
> objects into a bundle, and the names (keys) of the objects can stay the
> same.
...
> The idea is that if just the first argument (a string) is
provided
...
Sorry to be a spoilsport, but to me this looks like hard-to-explain
alternative syntax (thinking of the doc for defbundle). I know it's a
little more verbose, but one can do:
Hm, I have the feeling we're talking past each other. Or maybe not, the
"verbosity" is indeed my point. After all, it's obviously not a new
feature, but syntactic sugar.
Perhaps a better approach would be to enable the ~= operator for
bundles, like in this non-working pseudo hansl:
scalar x = 1
bundle b = null
b ~= x # now b.x would exist
b ~= I(2) # still illegal, since no key exists
But I admit these are luxury suggestions.
thanks
sven