[Bug 14188] Compound types

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14188

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?

/be

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