// of
>> // code
>> Test = 3; // Semantics totally unpredictable
>> }
>> }
>>
>> Is the outer Test set to three, or has an inner Test been
>> created that can take the value? Every program would become
est = 2; // Weird conditional declaration
>> // Many
>> // lines
>> // of
>> // code
>> Test = 3; // Semantics totally unpredictable
>> }
>> }
>>
>> Is the outer Test set
}
> }
>
> Is the outer Test set to three, or has an inner Test been
> created that can take the value? Every program would become
> impossible to understand, an unintelligible mess.
>
> With my subject line "surprising semantics" I didn't mean to
> a
er
arranges assignment in cases like these.
Even though this changes the behavior of function(), in that the
assignment comes later than usual, this is not a case of hidden
surprising semantics. The programmer did specify that the function
Fn depends on if(Unknown). This obeys what the progra
am would become
impossible to understand, an unintelligible mess.
With my subject line "surprising semantics" I didn't mean to
advocate more surprises, I wanted less!
I assumed that ES3.1 and ES4 declarations would work like
ES3 declarations do: The declaration spans the entire s
On Jul 18, 2008, at 6:41 PM, Waldemar Horwat wrote:
We've been down this road before, and the arguments you present
have been hashed out over years. This approach doesn't work. Read
the archives of the ES4 group.
Specifically, from the March 2008 meeting:
* ES3.1 and ES4 will both allow
We've been down this road before, and the arguments you present have been
hashed out over years. This approach doesn't work. Read the archives of the
ES4 group.
The problem is that you then get a plethora of ways to define things:
var
const
function
type
namespace
let
let const
let function
l
These are some impressions looking at what I expect from the
language, and how some things in the specification can cause
confusion.
I would have contributed here during the discussions, but I
discovered the mailing lists just a couple of days ago.
I expect the compiler's interpretation of progra