Re: E-on-JavaScript property mapping: fail on nonexistence?

David-Sarah Hopwood <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
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

_______________________________________________
e-lang mailing list
[email protected]
http://www.eros-os.org/mailman/listinfo/e-lang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.