From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 354491F4B4 for ; Fri, 18 Dec 2020 04:15:15 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 6D1A9120A3F; Fri, 18 Dec 2020 13:14:24 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id A0E28120A3E for ; Fri, 18 Dec 2020 13:14:22 +0900 (JST) Received: by filterdrecv-p3las1-685fdc5bbc-ph5zt with SMTP id filterdrecv-p3las1-685fdc5bbc-ph5zt-20-5FDC2CC9-41 2020-12-18 04:15:06.054926097 +0000 UTC m=+623573.828894561 Received: from herokuapp.com (unknown) by ismtpd0034p1iad2.sendgrid.net (SG) with ESMTP id mW19CnA9QL2ckhcZAGlKPQ for ; Fri, 18 Dec 2020 04:15:05.883 +0000 (UTC) Date: Fri, 18 Dec 2020 04:15:06 +0000 (UTC) From: nobu@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 77376 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 17099 X-Redmine-Issue-Author: S_H_ X-Redmine-Sender: nobu X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?q8Dly+pU2+3ektTtZVXgZtbJPXwqo7p86jCsvYTW4ByHr8voFMhGFNQ9C9aOGw?= =?us-ascii?Q?RZ1YEaESQ=2F5hVCB3T+jv593pE8tQFw21LDkhcHL?= =?us-ascii?Q?mPLESTmDBR70sxyq190HOd9dRvyG2nwvJqRzMt5?= =?us-ascii?Q?=2Ftj0oDUq6yvPL=2Fdt8qWl5YuUSWk=2FFWhD8bQX5Tr?= =?us-ascii?Q?PpTyKZrQlamzDGeAwxro0PAX7=2FzbpKTyinT=2Ftjj?= =?us-ascii?Q?N+w+KhMQMLl9hTH1Q=3D?= To: ruby-dev@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 50979 Subject: [ruby-dev:50979] [Ruby master Feature#17099] Remove boolean argument and warning from Module#attr X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: "Ruby developers \(Japanese\)" List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" Issue #17099 has been updated by nobu (Nobuyoshi Nakada). It has not been warned unless `$VERBOSE` yet. We may need wait one more release if we obey the previous rule. But deprecations aren't warned even if `$VERBOSE` since 2.7.2, I think we can reconsider that rule. ---------------------------------------- Feature #17099: Remove boolean argument and warning from Module#attr https://bugs.ruby-lang.org/issues/17099#change-89286 * Author: S_H_ (Shun Hiraoka) * Status: Open * Priority: Normal ---------------------------------------- `Module#attr` works as `Module#attr_reader` by default (since in 1.9.1). Its optional boolean argument is obsoleted, but it works as `Module#attr_writer` when its value is `true`. I think it's okay to remove the optional boolean argument and the warning from `Module#attr`. pull request: https://github.com/ruby/ruby/pull/3386 -- https://bugs.ruby-lang.org/