Allen Wirfs-Brock wrote:
I still stand by my alternative semantics as being a way to address the more 
important use case without have ?()
No, the basis cases differ and that is a bug in your alternative.

foo?.bar means take bar from foo or undefined if foo == null.

foo?.bar() means take bar from foo and throw if foo == null else try to invoke the result if typeof "function", else undefined.

This is an off-by-one bug.

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

Reply via email to