On Tue, Oct 11, 2011 at 11:43 AM, David Bruant <[email protected]>wrote:

> It gives me an idea for a proxy library which would be to pass a custom
> field in a data descriptor indicating the type. The proxy would enforce the
> type under the hood and either coerce silently or throw if the type is
> incorrect.



That's a cool idea, and a good way to experiment with possible future (post
ES6) direct representation of type-constrained (or guard constrained)
properties.


-- 
    Cheers,
    --MarkM
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to