From: Eric Hodel Date: 2011-12-02T07:07:00+09:00 Subject: [ruby-core:41436] [ruby-trunk - Feature #5695] CoffeeScript "is" and "isnt" keywords Issue #5695 has been updated by Eric Hodel. =begin This would break compatibility with RubyGems: $ egrep '\bis' lib/rubygems/package/tar_input.rb | grep -v '#' is = new io, security_policy yield is is.close if is is = zipped_stream entry Gem::Package::TarReader.new is do |inner| is.close if is is = StringIO.new(dis) is = StringIO.new(zis.inflate(entry.read)) =end ---------------------------------------- Feature #5695: CoffeeScript "is" and "isnt" keywords http://redmine.ruby-lang.org/issues/5695 Author: Suraj Kurapati Status: Open Priority: Normal Assignee: Category: Target version: Hello, Please add "is" and "isnt" keywords, which behave like the "==" and "!=" operators respectively, to Ruby. These keywords come from the CoffeeScript language. They are useful to prevent accidental assignment (forgetting a "=" in "==") and they preserve reading order, unlike inverted "if 5 == x" expressions known as "Yoda conditionals". Thanks for your consideration. -- http://redmine.ruby-lang.org