From: matz@... Date: 2017-01-19T08:17:04+00:00 Subject: [ruby-core:79151] [Ruby trunk Feature#12929] ternary should look ahead w/in a block (and not care about newlines) Issue #12929 has been updated by Yukihiro Matsumoto. I don't think it's worth modifying the syntax. If you want to write complex conditional code, use if-statement. Matz. ---------------------------------------- Feature #12929: ternary should look ahead w/in a block (and not care about newlines) https://bugs.ruby-lang.org/issues/12929#change-62567 * Author: shawn wilson * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto * Target version: ---------------------------------------- ```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: