in reply to callback or call now?
in thread callback or call now?

Yes, I posted it because I think it would be a useful idiom in general for \\&foo to mean the same as sub{\&foo} to code that does this kind of stuff.

As for its presence in this module causing farther spread that must be traced back to this module's use of it, it won't happen with this particular module. I expect it will be "statically" configured in a hash, not generated and passed in by other code (since this happens first!). The internal use to figure out what different types of values mean will all be encapsulated.

—John

Replies are listed 'Best First'.
Re: callback or call now?
by rir (Vicar) on Oct 17, 2002 at 21:30 UTC
    How is it useful?

    It is concise to pretend that a SCALAR is the same as a CODE, but they are not. Then the hash is here, but it is processed by those routines over there on the next screen, big hash. So the context that would tell the reader that this convention applies is not near the usage. So the convention must be described in comments, that must be kept in sync with the code yada, yada, badda bing blah ...

    You're a ... Why you... You are a ... You, you golfer you!

    Have fun with your code.