Could some of JavaScript's statements also be allowed as expressions? In Perl there is the common idiom when opening a file
open F, "< $f" or die "Can't open $f : $!"; In JavaScript could "throw" be an expression? f() || throw 'f failed'; Could JavaScript's "if" become an expression? (I know JavaScript the ?: operator but this is just a for example.) Could a Block statement also be an expression like Scheme's "begin"? Peter _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

