From: nobu@ruby-lang.org
To: ruby-core@ruby-lang.org
Subject: [ruby-core:100382] [Ruby master Feature#17260] Promote pattern matching to official feature
Date: Mon, 12 Oct 2020 07:45:54 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-87994.20201012074553.3007@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17260.20201011120315.3007@ruby-lang.org
Issue #17260 has been updated by nobu (Nobuyoshi Nakada).
It disallows assignments to other than local variables.
https://github.com/nobu/ruby/runs/1240626799#step:15:315
```
SyntaxError: (eval):1: syntax error, unexpected instance variable
def self.inc(x) = x + 1 => @x
^~
```
----------------------------------------
Feature #17260: Promote pattern matching to official feature
https://bugs.ruby-lang.org/issues/17260#change-87994
* Author: ktsj (Kazuki Tsujimoto)
* Status: Open
* Priority: Normal
* Target version: 3.0
----------------------------------------
I propose to promote pattern matching to official feature.
The current specification is basically fine, but I'd like to reconsider single line pattern matching (`expr in pat`) and suggest removing it once in 3.0.
--
https://bugs.ruby-lang.org/
next prev parent reply other threads:[~2020-10-12 7:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-11 12:03 [ruby-core:100371] [Ruby master Feature#17260] Promote pattern matching to official feature kazuki
2020-10-12 1:00 ` [ruby-core:100378] " matz
2020-10-12 6:30 ` [ruby-core:100380] " nobu
2020-10-12 7:17 ` [ruby-core:100381] " matz
2020-10-12 7:45 ` nobu [this message]
2020-10-12 12:16 ` [ruby-core:100387] " matz
2020-10-12 21:55 ` [ruby-core:100389] " daniel
2020-10-13 13:13 ` [ruby-core:100390] " dementiev.vm
2020-10-13 16:19 ` [ruby-core:100392] " marcandre-ruby-core
2020-10-13 16:44 ` [ruby-core:100393] " dementiev.vm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-87994.20201012074553.3007@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).