Non-extensibility of Typed Arrays

Brendan Eich brendan at mozilla.com
Fri Aug 30 13:30:59 PDT 2013


Filip Pizlo wrote:
>> Sometimes you want a product of different types, not a vector of 
>> same-typed elements. Typed arrays were designed so you would alias 
>> two views, crazypants. Structs put on sanepants. Just making sure the 
>> use-case has clear motivation here.
>
> OK - by "sanepants" do you mean that there is no weirdo aliasing? 
>  Going back to my example of field 'a' aliasing field 'b' - is it 
> possible?

Summoning dherman here, but yes: sanepants in my book means no aliasing 
-- not just no aliasing required, no aliasing possible.

/be


More information about the es-discuss mailing list