Description[StyleGuide] Allow let in JavaScript code
In https://codereview.chromium.org/2466263003 we realized that we should think
about our strategy for allowing `let` in Catapult. charliea@ proposed three
options for moving to allow it:
* Allow `let` but don't recommend it
* Recommend it for new code, but not for old code
* Recommend it for new code and require fixes to old code as it is modified.
On the basis that block scoping is a win for developer productivity, it makes
sense to recommend `let` in at least some cases, which throws out the first
option.
Given that requiring fixes to old code will almost certainly annoy
people, and the promise of --fix one day working with processors, that seems to
leave the second option as the best possible one.
BUG=catapult:#2833
Review-Url: https://codereview.chromium.org/2621643003
Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/98ef250d15b5d10ea61de27268f830cb07ca48a2
Patch Set 1 #Patch Set 2 : clarify required for new code #Patch Set 3 : rebase #Messages
Total messages: 16 (7 generated)
|