Re: [heycam/webidl] Figure-out what supporting Array-subclassing implies (#345)

You're not the only one frustrated by the state of this stuff, trust me.  :(

There is definitely a very longstanding problem here in terms of disagreement about how arraylikes should behave, because different people seem to want very different things out of them.  We've literally been arguing back and forth about this for years, and people can't even seem to agree on what "good ergonomics" means for arraylikes.  :(

One thing we could do is have some way in IDL to just opt into behavior similar to what typed arrays have in ES.  Those are not array subclasses, but have various things like slice/map/filter/etc defined on them, with special typed array semantics that are not generic unlike the Array versions.  They perform coercion (which can throw) on write.  This sounds like more or less what you're asking for, right?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/345#issuecomment-297806537

Received on Thursday, 27 April 2017 18:54:28 UTC