Really fascinated by the nullthrow(fn(foo)) hack in that instagram sample code. Might steal that pattern. #ChromedevSummit
-
-
-
Replying to @wycats
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.
1 reply 0 retweets 0 likes -
Replying to @jankrems
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.
1 reply 0 retweets 1 like
@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 …
8:52 AM - 3 Nov 2017
0 replies
0 retweets
1 like
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.