Re: [web-nfc] What's the value of `toJSON()`? (#366)

> We can name MIME type records `opaque` or `mime`.

If `media` doesn't fit, I'd prefer using `mime` then as it is familiar with NFC developers (MIME media-type) and apply directly to a record type.

> I don't have a strong opinion on the `data` or `payload` and whether we use getters or DataView. I like the current getters, but if there is a better alternative, I am open to that.

I'm not a huge fan of `payload` though but doesn't feel strongly about it.
Note that is is not common in the web platform: https://cs.chromium.org/search/?q=payload;+f:idl$+f:blink&sq=package:chromium&type=cs unlike `data`: https://cs.chromium.org/search/?q=data;+f:idl$+f:blink&sq=package:chromium&type=cs



-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/366#issuecomment-542182526 using your GitHub account

Received on Tuesday, 15 October 2019 12:16:25 UTC