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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>