W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2012

Audio-ISSUE-26 (NodeCreation): Node creation syntax

From: Audio Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Tue, 15 May 2012 13:07:22 +0000
Message-Id: <E1SUHTG-0007eS-58@tibor.w3.org>
To: public-audio@w3.org
Audio-ISSUE-26 (NodeCreation): Node creation syntax


Raised by: Marcus Geelnard
On product: 

Each node has its own create* method on the AudioContext object.

A common way is to use a single method taking a string argument giving the object name and an optional parameter object for object-specific parameters.

Examples: document.createElement() and canvas.getContext().

While semantically similar, using a single create* method is probably preferable over many different create* methods (e.g less namespace pollution, clearer extensibility mechanism and more consistent with other Web interfaces).
Received on Tuesday, 15 May 2012 13:07:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:04 UTC