Can it type check the function body of `f` correctly?
-
-
Ah, is this what you meant by "mapping interface"? This is a clever trick.
-
Yah I was going to recommend the same thing with Flow https://flow.org/try/#0C4TwDgpgBAShwFcBOA7AsgQzFAvFA3gFBRQBEAzsEgJYoDmpAXFAEYD2bANhBigDTEy7LjxRMolGvQEBfANyFC3YFABmuKAB4AKs0m06APgAUAD2baAlMwAkAUW4BbCCmDbwETXESpMYPlDahrjB+DKKylAAbhicGqrGAOTC3LyJlgqExjGcelQGlkA … (assumed TS had something similar)...
-
Unfortunately the keys need to be strings, I think.
-
Here's a more fleshed out and generalized version of the same trickpic.twitter.com/QYtDTtuzZv
-
I'm not sure how to react to this. On one hand, this is an impressive solution. On the other hand, this is just needlessly complex.
-
Were you just looking to grouse and annoyed that I got in the way? ;)
-
Heh, I'm actively trying to decide if I want to employ that solution or if I'd rather just use some casts. Leaning towards latter.
-
Especially since with the casts in there right now, my tests are passing! :-P
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.