Andrea Giammarchi (2013-12-20T19:14:37.000Z)
This is not helping ... yeah, apples-to-orange, as you wish .. now to
imagine you have a flexible understanding of the issue and the example I
was proposing so that:

if (stuff) {
  const WHATEVER = 1;
} else {
  const WHATEVER = 2;
}

two blocks, one const assigned with possibly only one value

Now tell me again how this works in C ...





On Fri, Dec 20, 2013 at 10:38 AM, J B <port25 at gmail.com> wrote:

> As far as the compiler is concerned it is only defined once. The
> preprocessor strips the second const out before the compilation phase.
>
> Let me correct my earlier statement: "Your C comparison was
> apples-to-oranges, #ifdef is evaluated before compilation."
>
>
> On Fri, Dec 20, 2013 at 1:02 PM, Andrea Giammarchi <
> andrea.giammarchi at gmail.com> wrote:
>
>> many launches --harmony by default with node, many others surf the web on
>> the edge. I don't want to tell anyone what to do in order to use a library,
>> they know experimental is experimental, and as Developer I would like to be
>> able to feature-detect experiments or at least know that I am in an
>> experimental Environment.
>>
>> Once again, this is off-topic here, but Proxy is a very good example for
>> this problem, so are generators in older Spidermonkey versions, so are ...
>> you name it, avoiding vendor prefixes for not finalized yet stuff is a hell
>> of a foot-gun for both specifications and developers ... maybe we don't see
>> this as a problem today, even if there are already concrete examples like
>> this, but I am sure it will come back soon.
>>
>>
>> On Fri, Dec 20, 2013 at 3:05 AM, Claude Pache <claude.pache at gmail.com>wrote:
>>
>>>
>>> Le 20 déc. 2013 à 08:36, Andrea Giammarchi <andrea.giammarchi at gmail.com>
>>> a écrit :
>>>
>>> > as side note: in node.js using --harmony flag ... what a developer
>>> should do there to understand that a partially non standard version of
>>> Proxy is there instead of the real one?
>>> >
>>> > Let's imagine I am a client/server library author ... just for a
>>> second, I'd like to grant one behaviour across platforms ... I'd love V8 to
>>> flag experimental features as v8Proxy instead, at least I know what I am
>>> dealing with!!! Don't care about multiple checks, as long as I can grant
>>> consistency.
>>> >
>>> > This is a concern of mine that keeps coming up ... off topic here
>>> >
>>>
>>> Surely not the answer you want, but as developer, I would consider the
>>> following actions:
>>>
>>> * Putting a prominent warning in my library doc: Do not use outdated
>>> builds with experimental features enabled. It would make babies cry.
>>> * Opening a bug against implementations, asking that builds with
>>> experimental features enabled must have an expiration date. It may annoy
>>> users, but at least, it will prevent kitten from being killed.
>>>
>>> —Claude
>>
>>
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131220/e9260ba6/attachment-0001.html>
domenic at domenicdenicola.com (2014-01-06T13:52:09.838Z)
This is not helping ... yeah, apples-to-orange, as you wish .. now to
imagine you have a flexible understanding of the issue and the example I
was proposing so that:

```js
if (stuff) {
  const WHATEVER = 1;
} else {
  const WHATEVER = 2;
}
```

two blocks, one const assigned with possibly only one value

Now tell me again how this works in C ...