On Sunday, August 10, 2003, at 09:58 PM, David Wheeler wrote:
On Sunday, August 10, 2003, at 06:07 PM, John Siracusa wrote:
...unless that's the only way you will *ever* call now()! :)

Obviously, you need currying. See Perl 6. Or create your own subclass with its own now() method that passes the argument for you. Or create a function that calls it for you, passing your default arguments, and returning the result. In fact, make it a code reference, and you will for all practical purposes have a curried version of the constructor!

"Easy things should be easy"^H^Hier than that ;)


-John

Reply via email to