On Fri, Sep 16, 2016 at 10:43 AM, J Decker <d3c...@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 ?
es-discuss mailing list