Re: [heycam/webidl] Replace serializers by toJSON and [Default] extended attribute (#323)

Re: [Default] vs. [DefaultToJSON]. I do not have strong opinions, and agree with your overview of the possible pros. I am just skeptical that we will ever use the generality. So I'm happy to leave it up to you; of course if @bzbarsky or anyone else has stronger opinions that would be good to hear.

BTW I am quite happy with the extended attribute approach these days; notably it fits with other cases where we use extended attributes to "generate" the definition of the operation/attribute, like [PutForwards].

Re: overall strategy. I think going straight to the backing data is the better way to go. It matches the current spec (see e.g. https://github.com/heycam/webidl/issues/188#issuecomment-271441063 discussion) and thus will result in no extra implementation churn.

-- 
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/pull/323#issuecomment-294578435

Received on Monday, 17 April 2017 20:16:23 UTC