Re: [w3ctag/design-reviews] Web of Things (WoT) Architecture (#355)

Hi there, @torgo asked me to look at the https://w3c.github.io/wot-scripting-api/

I have already gone over that a couple of time with @zolkis as he has asked for my input. To get some discussions going for our TAG meeting tomorrow, I had a quick glance over the latest API, so this is just a collection of random thoughts.

- `Promise<object> readAllProperties();` <- shouldn't that be an async iterator?
- Same counts for `Promise<ThingDescription> next();`
- `void emitEvent(DOMString name, any data);` <- maybe follow the "dispatch" pattern, ie `dispatchEvent`
- The global IDL over view lists an empty interface WOT and then 3 partial interface WOT - can they be joined - might be a spec tooling issue.
- properties and events have a special meaning on the web, so I think that reusing the names might be confusing from a web perspective as they are not the same. Maybe others have comments?



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/355#issuecomment-509633882

Received on Tuesday, 9 July 2019 13:06:02 UTC