- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 06 Mar 2014 10:22:50 -0500
- To: Travis Leithead <travis.leithead@microsoft.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On 3/5/14 5:37 PM, Travis Leithead wrote: > Is there any context for this issue? E.g., has any spec run-up against this problem? This came up in the context of designing a face-detection API in <https://bugzilla.mozilla.org/show_bug.cgi?id=965420>. The return value is a dictionary that uses other dictionaries to represent detected facial features (eyes, mouth, etc). When a facial feature is not detected, it seems to make more sense to have .eyes be null or undefined than to have it be an object with NaN values for the coordinates of the eyes (or some other sentinels like undefined)... > (The first one that came to mind--and I don't know if it is impacted by this or not--is the Media Capture and Streams spec with its rather complex "Constraints" dictionaries... Those are largely input, not output, so not really affected by this proposal. -Boris
Received on Thursday, 6 March 2014 15:23:22 UTC