Re: Element.create(): a proposal for more convenient element creation

On Tue, Aug 2, 2011 at 12:36 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> I'm not sure if it's better to include the children as a var-args
> list, or as an array. Certainly when typing things normally var-args
> saves you the "[" and "]", but when coding, if you've built the child
> list dynamically and have an array, you have to make awkward .apply
> calls.

Read again - the idea is to auto-expand arrays.

(I don't have much of a preference between "just use an array" and
"use varargs, but expand arrays".  I agree that using only varargs
without expansion would be bad.)

~TJ

Received on Tuesday, 2 August 2011 18:06:09 UTC