No code block without introductory keyword (was: Re: Boolean shortcuts)

François REMY fremycompany_pub at yahoo.fr
Wed Jan 4 06:07:46 PST 2012


If someone use ES6 features while the spec isn't done yet, he takes the risk 
of having his code breaking as the specification evolve.

In this case, he would have to rewrite his code as

    var foo = function() {
        eval {
            let x = 42;
            console.log( x );
        }
        eval {
            let x = 24;
            console.log( x );
        }
    }

François 



More information about the es-discuss mailing list