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

On Tue, 2 Aug 2011, Joćo Eiras wrote:
> 
> While the idea is interesting, "create" is a too simple name to add on 
> something as polluted as Element.

Why?

I think create() is fine. It's a pretty common name for a factory or 
constructor (in languages with named constructors), and having it on the 
interface object makes it pretty clear what it's a factory for.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 2 August 2011 04:25:49 UTC