in reply to Re^4: Garbage Collection and undef
in thread Garbage Collection and undef

What's the reason for having ReleaseAction when End already exists on CPAN (and was uploaded before)? If there is no profound reason, why not deprecate one of them and incorporate it in the other?

ihb

Read argumentation in its context!

Replies are listed 'Best First'.
Re^6: Garbage Collection and undef
by tilly (Archbishop) on Oct 17, 2004 at 06:30 UTC
    Because I didn't know about End?

    If you want, blame merlyn. I originally wasn't going to release ReleaseAction. But he thought that it was an interesting module, noted how it made the core module SelectSaver trivial to implement, and encouraged me to release on CPAN. I think that if either of us had realized that it already existed, I wouldn't have released.

    You're right that the two are very similar. Mine is more flexible though. I allow you to cancel the action before it happens. I allow you to pass arguments into the closure. (I don't document that very clearly though.) I give you an optional OO interface.

    While I would not have released had I realized that the same module was out there already, at this point I see no harm in having both available. I'll update my module to mention End though.