in reply to Re: Re: RFC Magic::Attach
in thread RFC Magic::Attach

Yes, the property name should be required.

In exegesis 2, it shows that the new keyword is will assign a named property to a value: $val is Found(0) is sugary syntax for something like attach (\&val, Found => 0). For looking it up, it shows treating the plain scalar value like a hash. There's got to be a longer way, or it would have problems when the value is a hash. The Apocalypse probably shows more detail, but that's already changed so don't get too, er, attached to it. I think last I heard run-time properties used the but keyword.

But, Apocalypse 2 (end of the properties section) gives "a list of property ideas" that you might try using with your stuff.

—John