On 13 January 2011 18:26, Poetro <poe...@gmail.com> wrote:

> Support both.
>
>
I was going to say exactly the same thing. If you only need two arguments at
the moment, use two arguments. If you need to expand later, make it so the
function can optionally take a single options object. This doesn't have to
break compatibility because you'll check the number and type of the
arguments.
-- 
Nick Morgan
http://skilldrick.co.uk
@skilldrick <http://twitter.com/skilldrick>

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/jsmentors@jsmentors.com/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/jsmentors@googlegroups.com/

To unsubscribe from this group, send email to
jsmentors+unsubscr...@googlegroups.com

Reply via email to