[e-lang] E-on-JavaScript property mapping: fail on nonexistence?

David-Sarah Hopwood david-sarah at jacaranda.org
Sun Aug 23 16:12:28 EDT 2009


Kevin Reid wrote:
> In E-on-JavaScript, when in Cajita mode, object["foo"] accesses the  
> foo property of object. Should it throw if the property does not  
> exist,

Yes. It's E-on-JavaScript, so E's philosophy about avoiding silent
failures applies. Cajita would throw if not for the constraint of
being a fail-stop subset of ECMAScript.

> or return JavaScript undefined as occurs in JavaScript?

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com



More information about the e-lang mailing list