From: nobu@... Date: 2016-11-15T06:16:48+00:00 Subject: [ruby-core:78145] [Ruby trunk Feature#12929][Assigned] ternary should look ahead w/in a block (and not care about newlines) Issue #12929 has been updated by Nobuyoshi Nakada. Tracker changed from Bug to Feature Description updated Status changed from Open to Assigned Assignee set to Yukihiro Matsumoto It is not a bug, and easy to extend the parser to allow that syntax, but doesn't look nice to me. ---------------------------------------- Feature #12929: ternary should look ahead w/in a block (and not care about newlines) https://bugs.ruby-lang.org/issues/12929#change-61507 * Author: shawn wilson * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- ```ruby 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) -- https://bugs.ruby-lang.org/ Unsubscribe: