W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

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

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 2 Aug 2011 04:25:15 +0000 (UTC)
To: Joćo Eiras <joao.eiras@gmail.com>
cc: WebApps WG <public-webapps@w3.org>
Message-ID: <Pine.LNX.4.64.1108020424020.18680@ps20323.dreamhostps.com>
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.


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:23 UTC