Project

General

Profile

Actions

Feature #5695

closed

CoffeeScript "is" and "isnt" keywords

Added by sunaku (Suraj Kurapati) almost 13 years ago. Updated over 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
[ruby-core:41435]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0