Re: style question about passing durations

2003-11-10 Thread Jonathan Swartz
On Sun, 9 Nov 2003, Jonathan Swartz wrote: Say I've got a function that takes a duration. I could 1) require the user to do DateTime::Duration-new(...); 2) take a listref argument containing the params, e.g. [days=1] and do the creation myself 3) be flexible and take either argument,

Re: style question about passing durations

2003-11-09 Thread Dave Rolsky
On Sun, 9 Nov 2003, Jonathan Swartz wrote: Say I've got a function that takes a duration. I could 1) require the user to do DateTime::Duration-new(...); 2) take a listref argument containing the params, e.g. [days=1] and do the creation myself 3) be flexible and take either argument,