Issue #5695 has been reported by Suraj Kurapati.

----------------------------------------
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