Proposal: anaphoric if and while syntax

J Decker d3ck0r at gmail.com
Mon Oct 3 23:27:00 UTC 2016


On Fri, Sep 16, 2016 at 10:43 AM, J Decker <d3ck0r at gmail.com> wrote:

> I saw it mentioned in several messages earlier about the comma operator as
> applied to the let/var statement... I suppose that IS an issue.
>
> for example : if( let a = 1, b = 0 )
>   1)  if( 1, 0 )  the comma operator clears the expression stack and
> results with only the value after the comma... so you can chain some
> expressions that may have side effects... /* if( a=f(), b=g(a) )  */
>

Sorry I did that again; ... that would really be like ' a = (  f(), b=g(a))
' and would fail.... I always do that.  maybe

if( ( a=f() ), g(a) ) intead?


>
>   2) if the comma is then interpreted as an operator for the declaration,
> then the result is... undeterminate... because there's really not a
> testable result ?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161003/7c73bd7e/attachment.html>


More information about the es-discuss mailing list