Project

General

Profile

Actions

Bug #19876

closed

Equality chaining

Added by kddnewton (Kevin Newton) 8 months ago. Updated 8 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:114707]

Description

It appears that you cannot chain ==, !=, <=>, =~, !~, ===:

foo == bar == baz

but you can chain all of the other operators:

1 << 2 << 3

I'm not sure if I've missed some. I would just like to know if this is a bug. If it's not, then I need to know which operators cannot be chained. At the moment all of these can be chained in YARP, but if it's desired behavior that that is a syntax error, I need to explicitly disallow this.

Actions

Also available in: Atom PDF

Like0
Like0Like0