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
{{ message }}
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.
A lot of the callback hell spaghetti can be replaced with promises (which as a huge benefit makes our asynchronous code composable, and will replace monsters like the image loading stuff -- we can use Promise.all instead).
We might also want to target ES6 natively (since it's supported by a large majority of modern browsers) in TypeScript ("target": "ES6"} and use ES6 libs.)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ES6 is becoming more and more supported, and it offers some very nice features (const, let, destructuring, Map, Set, etc.)
TypeScript transpiles a lot of these, but the codebase doesn't use much of them (in particular I recall wrapping some blocks in lambdas to mimic let.)
const
should be defaulted to when making bindings we won't change, andlet
otherwise.We may also use
for(let x of xs) ...
for loops over arrays, andObject.assign
for cloning/mass-assigning objects.The text was updated successfully, but these errors were encountered: