W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

Conventions for composed words in enum

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Mon, 21 Oct 2013 09:31:22 +0200
Message-ID: <1382340682.5025.13.camel@cumulustier>
To: public-script-coord@w3.org
Cc: Stefan HÃ¥kansson LK <stefan.lk.hakansson@ericsson.com>, Harald Alvestrand <harald@alvestrand.no>

The Media Capture Task Force is looking at defining values of a WebIDL
enum that represent the kind of device it is operating its streams on,
with values representing for instance "audio input" and "audio output".

The question has arisen on how to turn a composed phrase into the
corresponding string value of the enum (i.e. "audioInput" vs
"audio-input" vs "audioinput").

My impression is that the current usage would points toward simple
concatenation (i.e. "audioinput"); for instance:

But given that I've only found a few such examples, I would like to
confirm this is indeed the correct approach; also, is there any document
where this could documented? http://www.w3.org/TR/api-design/ would seem
logical, but I don't think it is maintained any more.

Received on Monday, 21 October 2013 07:31:41 UTC

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