in reply to Re^5: Benefits of everything is an object? Or new sigils?
in thread Benefits of everything is an object? Or new sigils?

> Besides which, it is perfectly possible to manage namespaces without resorting to either objects or clever, obscure hacks like autobox.

Emp::listActives( @employees );

Nothing new, I already listed this possibility and BTW wasn't even talking about autobox.¹

Cheers Rolf

UPDATE:

¹) Using autobox to realize a method list_actives() would just be another way to pollute the namespace, see also ->Re^5: Benefits of everything is an object? Or new sigils?. Autobox has it's strength when calling methods on primitive data structures.

Replies are listed 'Best First'.
Re^7: Benefits of everything is an object? Or new sigils?
by BrowserUk (Patriarch) on Mar 02, 2010 at 23:21 UTC

    Sorry. I somehow missed this reply.

    Nothing new,

    True. But old is not a pseudonym for "bad"; much less new a pseudonym for "good".

    I already listed this possibility

    Yes, you did. But I wonder why you dismiss it so readily?

    and BTW wasn't even talking about autobox.

    Did you miss the "either objects or" part of my post you quoted?

    And was I dreaming when I thought I read: "Another approach would be to use something like autobox" in the OP?

    Y'know, I'd really like to qet a squint at whatever piece of code it is, that you've had trouble either refactoring or porting, that prompted your current obsession, investigations :)


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.