From: matz@... Date: 2021-04-16T04:30:31+00:00 Subject: [ruby-core:103470] [Ruby master Feature#17398] SyntaxError in endless method Issue #17398 has been updated by matz (Yukihiro Matsumoto). Backport deleted (2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN) Tracker changed from Bug to Feature Pros * More intuitive / consistent / natural Cons * Duplicated syntax rules * Even more complex syntax If I were young, I would add @mame's patch. I did similar decisions many times in the past. But Ruby has been mature and complex, I now feel reluctant. Let us consider this idea for a while. Matz. ---------------------------------------- Feature #17398: SyntaxError in endless method https://bugs.ruby-lang.org/issues/17398#change-91566 * Author: zverok (Victor Shepelev) * Status: Open * Priority: Normal ---------------------------------------- This works: ```ruby def foo() = puts("bar") ``` This does not: ```ruby def foo() = puts "bar" # ^ syntax error, unexpected string literal, expecting `do' or '{' or '(' ``` Is this intentional or accidental? Not sure how it is reasoned. -- https://bugs.ruby-lang.org/ Unsubscribe: