You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding "better now example in docs"—I'll probably do a pass at reviewing the current reference docs as a whole.
Along those lines: since there will be a separate, guided introduction to the language as a whole, there could be room to trim down the reference docs to be especially concise but still illustrative.
Cool – although in the case of now, I'm actually going to revise the language itself to guide users more directly instead (shadowing with implicit const shouldn't be allowed, it's too confusing and too likely to result in accidents).
let someVar
if someCond:
someVar = 1
// SyntaxError: `someVar` is shadowed from a higher scope. If you want to reassign the variable, use `now someVar = ...`. If you want to declare a new shadowed `const` variable, you must use `const someVar = ...` explicitly.
Activity
jsonnull commentedon Mar 6, 2017
Hey @rattrayalex
Regarding "better
nowexample in docs"—I'll probably do a pass at reviewing the current reference docs as a whole.Along those lines: since there will be a separate, guided introduction to the language as a whole, there could be room to trim down the reference docs to be especially concise but still illustrative.
rattrayalex commentedon Mar 6, 2017
Cool – although in the case of
now, I'm actually going to revise the language itself to guide users more directly instead (shadowing with implicitconstshouldn't be allowed, it's too confusing and too likely to result in accidents).jsonnull commentedon Mar 7, 2017
Hmm how's that going to work?
rattrayalex commentedon Mar 7, 2017
Something like that 😉 let's move discussion to Gitter? Just created an org: https://gitter.im/lightscript/Lobby