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

[Bug 14188] Compound types

From: <bugzilla@jessica.w3.org>
Date: Sat, 17 Sep 2011 16:52:04 +0000
To: public-script-coord@w3.org
Message-Id: <E1R4y7Y-0008Sz-1h@jessica.w3.org>

Brendan Eich <brendan@mozilla.org> changed:

           What    |Removed                     |Added
                 CC|                            |brendan@mozilla.org

--- Comment #2 from Brendan Eich <brendan@mozilla.org> 2011-09-17 16:52:03 UTC ---
"compound" is the wrong word -- think of chemical compounds. It means an
aggregate, a product type in ML, a struct in C/C++.

What you mean here is "union", but a safe one, I hope! I.e. no way to pun
memory containing the bits representing an instance of one type as if they were
bits representing an instance of another type. IIRC WebIDL already has an
option type like this, for nullability.

Indeed, what's the use-case beyond option types?


Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Saturday, 17 September 2011 16:52:12 UTC

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