Re: [heycam/webidl] Enumeration order of interface members (#432)

> I have no idea what the perf cost of (1) and (2) would be.

I can't speak to other implementations, but in Gecko this would be a compile-time cost, not a runtime cost.  This is also how dictionary members are already ordered.

Though, actually, that's not quite true.  Gecko sets up properties on prototypes in "batches", operations separately from attributes, for various reasons.  So right now in Gecko ordering is IDL order (ignoring the multiple fragment thing) within each of operations and attributes, but operations always come before attributes.  That said, ordering within each of those lexicographically or so would be easy.

The problem is that the arc/arcTo thing we ran into in https://bugzilla.mozilla.org/show_bug.cgi?id=623437 needed `arcTo` to come _before_ `arc`.

-- 
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/432#issuecomment-334587367

Received on Thursday, 5 October 2017 20:47:55 UTC