Re: [WICG/webcomponents] CustomEvents Add Event Handler in Html (#908)

Yeah, I've long been a proponent of providing helper APIs to make these sorts of things easier. E.g. attribute/property reflection, or event handler properties. I think beyond precedent in libraries, there's huge precedent in the platform itself.

But, without decorators, the helper APIs are just extremely non-ergonomic. Compare the two samples at https://gist.github.com/domenic/e3e1e034e119826f394480cd9f15e211#proposed-api-shape .

Given that we don't generally want to standardize something twice, and this can be done in userland in the meantime, I think waiting for decorators is the right move.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/908#issuecomment-725493567

Received on Wednesday, 11 November 2020 15:39:02 UTC