there's a tricky balance between 'why would i pay the price for this' and 'yes i'm certain of this, but not *that* certain'. i'm glad the code i work on isn't so performance critical that i can't pick the 'safe but slow' choice basically always.https://twitter.com/mgattozzi/status/1120808895180681219 …
-
-
The case I'm thinking of is mainly where I'm *essentially* certain a (possibly large) string is UTF-8, but don't really want to use the unchecked variant. Admittedly, the UTF-8 check is quite fast, but still.
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.