Changes between Initial Version and Version 4 of Ticket #6581


Ignore:
Timestamp:
04/12/2018 05:10:35 PM (20 months ago)
Author:
agiammarchi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6581

    • Property Cc greiner kzar sebastian saroyanm sergz added
    • Property Component changed from Unknown to Platform
  • Ticket #6581 – Description

    initial v4  
    55  * Use const for constant expressions that could as well have been inlined (e.g. static parameters, imported modules, etc.). 
    66 
    7 There are many expressions that can be inlined and also part of a block scope, `for (const value in items) {}` is [https://tc39.github.io/ecma262/#prod-ForDeclaration just one of those]. 
     7There are many expressions that can be inlined and also part of a block scope, `for (const value of items) {}` is [https://tc39.github.io/ecma262/#prod-ForDeclaration just one of those]. 
    88 
    99It's quite reasonable to expect that whenever a developer writes `const ref = value` such immutable reference is meant to be guarded against undesired reassignments, guards also naturally provided by the  programming language itself.