Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Re: Re: RFC Magic::Attach

by John M. Dlugosz (Monsignor)
on Jan 21, 2003 at 06:32 UTC ( [id://228597]=note: print w/replies, xml ) Need Help??


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

I agree it's too limited to be called Magic::Attach. That would be a good name for a helper module used to implement such a thing, something you wish you had instead of having to write in XS.

The use of the ~ table is meerly an implementation detail. What the module does is attach named attributes to a value at run time. It should be named for its public interface and purpose, not for its implementation details. (Save that name for a concrete implementation when the same interface is implemented multiple ways based on the situation).

This concept is what Perl 6 calls "Properties", and LISP also calls it properties. It's different from the existing Perl attributes or attribs.

—John

Replies are listed 'Best First'.
Re^6:: RFC Magic::Attach
by shotgunefx (Parson) on Jan 21, 2003 at 09:07 UTC
    If I add the callback functionality, perhaps it will be worthy of the name. But even then I think the name should be somewhat generic because it is not intended to be a property or attribute, simply the binding of pieces of data. What you do with it on the other hand...

    While I understand the "magic" part is simply an implementation detail, it might be worth having simply for the fact that when something goes wrong, something along these lines is bound to break in strange ways where most people would never think to look.

    BTW, What is the best place to get up to speed on Perl 6. I read the exgenesis and apocalypses but I'm sure much has changed. Any good overviews of the current state?

    -Lee

    "To be civilized is to deny one's nature."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://228597]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found