Local variable refinements are unsafe in TS and Flow. Both are bad, TS is the worst. Seems obvious in hindsight but neither handle local refinement invalidation correctly. I'm not speaking abstractly, this has caused bugs in my code before.
-
-
This is another case I ran into which I'm pretty sure is in the same class as refinement invalidation: https://www.typescriptlang.org/play/#code/MYGwhgzhAEBiD29oG8BQ1rHgOwgFwCcBXYPeAgCgEoV0No8ALASwgDoxTmA3AU2gC80AGZgQEXgG46AX1R1OeHrwBc0AEaIQvMNml0AJjq7cweXtVr0GLdouWCRYidIxy6zbMzyW01pqwcJvxChERS8v62bEb2pubU+tYA9MnQsSZmFjQSeNAABgF2wfkMSPmi4ryl6kR53gDkMPjMICDQALZgBADWvAbQkAVh1enhZTb8kBDMAObYHbzYeWCafHQYzMLQFEVBSnyCAkKVEjR+1pg4EPDabCDwsxQNRB0dDVSu9HJuqDJAA …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 