@lukas_nowacki @DavidBruant @bz_moz @Ms2ger +1. what is the recommended way of checking this without triggering a throw? I cant find any.
-
-
Replying to @kuvos
@kuvos@lukas_nowacki@DavidBruant@Ms2ger What are you trying to check?1 reply 0 retweets 0 likes -
Replying to @really_bz
@bz_moz it's a generic check to see if we can get to a `document` object. runs indiscriminately on many objects. whoever made that api... :/1 reply 0 retweets 0 likes -
Replying to @really_bz
@bz_moz of course, we can with try/catch. but since when has that become the preferred way of checking a property :'(1 reply 0 retweets 0 likes -
Replying to @really_bz
@bz_moz doesn't make it "right" (tm)... :) it just bit us hard for no apparent reason. due to some user script doing wonky stuff, sigh.1 reply 0 retweets 0 likes -
Replying to @really_bz
@bz_moz and that's good. my beef is with throwing when you're just reading a property value. there's no non-try-catch way of guarding for it1 reply 0 retweets 0 likes
@kuvos At least unless you define a different default return value for each case and still have some throw....
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.