Re: [whatwg/webidl] ObservableArray without assignment (#1027)

Thanks @EisenbergEffect. Indeed changing the behavior of `adoptedStyleSheets` in a non-backwards compatible way is a non-starter. Completely agree with options 1 and 2 for `adoptedStyleSheets`.

I understand that so much of this debate is tied up in the specific use of ObservableArray in `adoptedStyleSheets`. I would want to retain compatibility there no matter what. My use case is actually in FormattedText's [`textruns` property](https://github.com/WICG/canvas-formatted-text/blob/main/explainer-datamodel.md#webidl), where I wonder if assignability conveys the wrong expectation about the `textruns` property identity. @EisenbergEffect, given your experience, I would love your thoughts on whether this is an imagined problem in general? Do (or would) authors assume that an assignment preserves the identity of the array instance? Or as @annevk asserts above, will people quickly figure out (how?) what kind of semantics the setter has?

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

Received on Wednesday, 6 October 2021 03:24:36 UTC