ruby-changes:70173
From: Yusuke <ko1@a...>
Date: Mon, 13 Dec 2021 14:02:32 +0900 (JST)
Subject: [ruby-changes:70173] 1da1d74730 (master): NEWS.md: `def foo = puts "Hello"` is now allowed [Feature #17398]
https://git.ruby-lang.org/ruby.git/commit/?id=1da1d74730 From 1da1d7473076aa1865d1fb31a1b03e72c7127d01 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Mon, 13 Dec 2021 14:01:40 +0900 Subject: NEWS.md: `def foo = puts "Hello"` is now allowed [Feature #17398] --- NEWS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index a82e4afecdb..18440c27a07 100644 --- a/NEWS.md +++ b/NEWS.md @@ -95,6 +95,11 @@ Note that each entry is kept to a minimum, see links for details. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L95 if ivars refer to shareable objects. [[Feature #17592]] +* A command syntax is allowed in endless method definition, i.e., + you can now write `def foo = puts "Hello"`. + Note that `private def foo = puts "Hello"` does not parse. + [[Feature #17398]] + ## Command line options ## Core classes updates @@ -495,6 +500,7 @@ See [the repository](https://github.com/ruby/error_highlight) in detail. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L500 [Feature #17312]: https://bugs.ruby-lang.org/issues/17312 [Feature #17327]: https://bugs.ruby-lang.org/issues/17327 [Feature #17370]: https://bugs.ruby-lang.org/issues/17370 +[Feature #17398]: https://bugs.ruby-lang.org/issues/17398 [Feature #17411]: https://bugs.ruby-lang.org/issues/17411 [Bug #17423]: https://bugs.ruby-lang.org/issues/17423 [Bug #17429]: https://bugs.ruby-lang.org/issues/17429 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/