W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

[web-audio-api] (NodeCreation): Node creation syntax (#224)

From: Olivier Thereaux <notifications@github.com>
Date: Wed, 11 Sep 2013 07:29:10 -0700
To: WebAudio/web-audio-api <web-audio-api@noreply.github.com>
Message-ID: <WebAudio/web-audio-api/issues/224@github.com>
> Originally reported on W3C Bugzilla [ISSUE-17408](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17408) Tue, 05 Jun 2012 12:37:46 GMT
> Reported by Michael[tm] Smith
> Assigned to 

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).

Reply to this email directly or view it on GitHub:
Received on Wednesday, 11 September 2013 14:29:41 UTC

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