News for hackers. Stuff that matters.
Re:The Billy Baldwin of Conditional Assignment in Ruby by stdbrouw on Tuesday June 21, 2011 @08:20PM (#2681002)
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

There are no comments on this comment yet.