Project

General

Profile

Actions

Feature #12929

closed

ternary should look ahead w/in a block (and not care about newlines)

Added by ag4ve (shawn wilson) over 7 years ago. Updated over 2 years ago.

Status:
Rejected
Target version:
-
[ruby-core:78107]

Description

foo = (bar ? 0 : 1) # works
foo = (bar ?
  0 : 1) # works
foo = (bar
  ? 0
  : 1) # doesn't work

Files

Screen Shot 2016-11-14 at 10.24.39.png (207 KB) Screen Shot 2016-11-14 at 10.24.39.png mutantkeyboard (Antonio Nesic), 11/14/2016 09:25 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0