- From: Marcos Caceres <marcos@marcosc.com>
- Date: Thu, 14 Aug 2014 16:36:03 -0400
- To: Domenic Denicola <domenic@domenicdenicola.com>, public-script-coord <public-script-coord@w3.org>
- Cc: Dominique Hazael-Massieux <dom@w3.org>, Mounir Lamouri <mounir@lamouri.fr>
Hi, Quick IDL+Promises question. I have a method: interface ScreenOrientation { Promise<undefined> lock (OrientationLockType orientation); } Where in spec prose we eventually say: "...resolve p with `undefined`." It was raised elsewhere that maybe this should be `Promise<void>` instead? What would be more idiomatic? Using void seems to make more sense then passing `undefined` to the resolver - as the arguments.length would be 0 instead of 1 (undefined).
Received on Thursday, 14 August 2014 20:36:31 UTC