Really fascinated by the nullthrow(fn(foo)) hack in that instagram sample code. Might steal that pattern. #ChromedevSummit
-
-
Yep. I’ve seen the pattern a lot in native code and/or Java. For some reason rarely in JS. Maybe TS/flow solves a too-similar problem.
-
I have one of these in every TS project: https://github.com/glimmerjs/glimmer-vm/blob/master/packages/%40glimmer/util/lib/platform-utils.ts … Strip it out in prod.
-
@chancancode and I extracted it out into a separate lib you can pull into TS projects: https://github.com/tildeio/ts-std/blob/master/src/assert.ts …
End of conversation
New conversation -
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.