Thomas Grainger
Thomas Grainger
Vars should be hoisted, then converted to let ``` js function logTheLengthOfTheArrayForEachElementInTheArrayAsync() { const messages = [0, 1, 2]; let i; for (i = 0; i < messages.length; i++) {...
Rather than leaving the variable as var you could just manually move it to the hoisted position and convert it into a let. On 7 Jul 2016 13:43, "Rene Saarsoo"...
Instead of moving it you could wrap the for loop in a new scope. ``` js { let i; for (i in ...){} } ``` On 7 Jul 2016 14:06,...
You should always hoist that let manually
Sure it should issue the warning, but the syntactical hoisting should be available as an option. I want a tool that can eliminate `var` from a codebase
@lf1up https://click.palletsprojects.com/en/7.x/arguments/#variadic-arguments it looks like you can pass `nargs=-1` now
can you not listen on port 0? then ask the program what port it found?
@jd it might be good to use https://github.com/Yelp/ephemeral-port-reserve/
I've made this available as pace-progress
@jonathanamartin can you re-open this until it's officially supported.