Closed GoogleCodeExporter closed 9 years ago
Original comment by tbreisac...@google.com
on 16 Feb 2014 at 3:05
Question: If we have "/** @const */ var FOO;" in the externs, should that mean:
1. FOO is not only declared externally, but also given a value, or
2. FOO is declared externally, but may not have a value yet, so it's okay to
assign to it in the non-externs code.
?
If we choose option 1, then just writing "FOO = 1;" would be an error. If we
choose option 2, then "FOO = 1;" on its own would be okay, but "FOO = 1; FOO =
2;" would be an error. I would lean toward option 1.
Original comment by tbreisac...@google.com
on 18 Feb 2014 at 7:11
I would also lean toward option 1. Some constants are not known at compile
time, but are still known to never change.
Original comment by blic...@google.com
on 18 Feb 2014 at 7:32
This issue was closed by revision 8f5bc28d124b.
Original comment by blic...@google.com
on 21 Feb 2014 at 6:56
Original issue reported on code.google.com by
ndkrem...@google.com
on 30 Jan 2014 at 5:10