3 ms·
Don't think so, but I wouldn't want it anyway, the Ruby syntax being as it is. I think the CoffeeScript equivalents are more intuitive: @current_user ?= User
by stdbrouw 15y ago
Don't think so, but I wouldn't want it anyway, the Ruby syntax being as it is. I think the CoffeeScript equivalents are more intuitive:
@current_user ?= User.find()
# as opposed to @current_user ||= User.find()
and
@summary = excerpt?.squish
# as opposed to @summary &&= excerpt.squish