I wrote a comment suggesting an alternate syntax for the Ruby "safe navigation" operator (aka "syntax for try") https://bugs.ruby-lang.org/issues/11537#note-23 …
-
-
@wycats as opposed to any falsy value? -
@tikotzky yeah, wouldn't include 0, empty string, or NaN -
@wycats ah ok, so a diff new operator. Though you were referring to somehow using it to do safe navigation -
@tikotzky If we had `??`, we could possibly do `u ?? .profile ?? .thumbnails ?? .large` -
@wycats a leading dot would be new syntax only valid after a '??' ? -
@wycats how would that work with square bracket notation? -
@tikotzky should "just work" - 2 more replies
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.