- From: Marcos Cáceres <notifications@github.com>
- Date: Tue, 06 Jul 2021 23:33:53 -0700
- To: w3c/permissions <permissions@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 July 2021 06:35:02 UTC
Sorry for the delay...
I wonder if you could do:
```
enum DenoPermissionName {
"run",
"read",
"write",
"net",
"env",
"plugin",
"hrtime",
};
enum PermissionName {
"geolocation"
// ...etc...
};
typedef (DenoPermissionName or PermissionName) ExtendedPermissionName;
dictionary PermissionDescriptor {
required ExtendedPermissionName name;
};
```
> There could be name conflicts in the future between the web's and Deno's permission names. We can address this by prefixing our permission names with "deno-*", I guess. Thoughts on that?
That's also a lightweight and sensible solution, IMO.
Interested to hear where you ended up!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/212#issuecomment-875326524
Received on Wednesday, 7 July 2021 06:35:02 UTC