<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/doc/syntax/pattern_matching.rdoc, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Remove alternation pattern matching handling from the prism compiler</title>
<updated>2025-11-17T15:11:40+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-11-17T12:02:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d66b37e3d8737451ae76b40823641582bd451f8f'/>
<id>d66b37e3d8737451ae76b40823641582bd451f8f</id>
<content type='text'>
Since https://github.com/ruby/ruby/pull/15212 these are proper syntax
errors, so no need to handle this explicitly anymore.

Also updated the example in the docs for this
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since https://github.com/ruby/ruby/pull/15212 these are proper syntax
errors, so no need to handle this explicitly anymore.

Also updated the example in the docs for this
</pre>
</div>
</content>
</entry>
<entry>
<title>Escape `Binding` reference in pattern matching docs</title>
<updated>2025-03-21T01:36:13+00:00</updated>
<author>
<name>Joshua Young</name>
<email>djry1999@gmail.com</email>
</author>
<published>2025-03-20T08:44:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=99503ab9751c09a2f5467dee4ceb0e30af4e95bd'/>
<id>99503ab9751c09a2f5467dee4ceb0e30af4e95bd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Fix output examples containing old Hash#inspect format</title>
<updated>2024-12-18T17:08:15+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-12-18T17:08:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=477c505ac0d4d23a860ffafbb487f7598aa89ca3'/>
<id>477c505ac0d4d23a860ffafbb487f7598aa89ca3</id>
<content type='text'>
The inspect format was intentionally changed as an outcome of
[Bug #20433] [ruby-core:118668], but some documentation update
was missing, as [Bug #20962] pointed out. Update some output
examples that clearly use Hash#inspect.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The inspect format was intentionally changed as an outcome of
[Bug #20433] [ruby-core:118668], but some documentation update
was missing, as [Bug #20962] pointed out. Update some output
examples that clearly use Hash#inspect.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #20482] [DOC] Clarify about pattern maching guard clause</title>
<updated>2024-05-12T07:23:00+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-05-12T07:23:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b911d2222f907d3fad397938e8f513ecfb4635b8'/>
<id>b911d2222f907d3fad397938e8f513ecfb4635b8</id>
<content type='text'>
Guard clauses can only be used in `case` pattern matching statements,
not in `=&gt;`/`in` operators.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Guard clauses can only be used in `case` pattern matching statements,
not in `=&gt;`/`in` operators.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Update pattern matching docs for 3.2</title>
<updated>2023-02-19T20:32:52+00:00</updated>
<author>
<name>zverok</name>
<email>zverok.offline@gmail.com</email>
</author>
<published>2023-02-15T20:42:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ce0f3de032ea0dffbfd20dfbfe33453f65ec5a7c'/>
<id>ce0f3de032ea0dffbfd20dfbfe33453f65ec5a7c</id>
<content type='text'>
* Remove section about experimental status
* Add references to core objects that can deconstruct
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove section about experimental status
* Add references to core objects that can deconstruct
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow omission of parentheses in one line pattern matching [Feature #16182]</title>
<updated>2021-08-19T08:07:58+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2021-08-19T08:03:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ecb6d6a4ef058b5598a7633c3921eeab08ce11c6'/>
<id>ecb6d6a4ef058b5598a7633c3921eeab08ce11c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>One-line pattern matching is no longer experimental</title>
<updated>2021-07-17T02:13:52+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2021-07-17T02:13:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=eed5e8f796ab18e2e0a436dab83e35504ae3ded0'/>
<id>eed5e8f796ab18e2e0a436dab83e35504ae3ded0</id>
<content type='text'>
https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20210715Japan.md#feature-17724-make-the-pin-operator-support-instanceclassglobal-variables-jeremyevans0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/dev-meeting-log/blob/master/DevelopersMeeting20210715Japan.md#feature-17724-make-the-pin-operator-support-instanceclassglobal-variables-jeremyevans0
</pre>
</div>
</content>
</entry>
<entry>
<title>Add pattern matching pin support for instance/class/global variables</title>
<updated>2021-07-15T16:56:02+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2021-05-13T22:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fa87f72e1e84e2b55516be188f00434a683b924c'/>
<id>fa87f72e1e84e2b55516be188f00434a683b924c</id>
<content type='text'>
Pin matching for local variables and constants is already supported,
and it is fairly simple to add support for these variable types.

Note that pin matching for method calls is still not supported
without wrapping in parentheses (pin expressions).  I think that's
for the best as method calls are far more complex (arguments/blocks).

Implements [Feature #17724]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pin matching for local variables and constants is already supported,
and it is fairly simple to add support for these variable types.

Note that pin matching for method calls is still not supported
without wrapping in parentheses (pin expressions).  I think that's
for the best as method calls are far more complex (arguments/blocks).

Implements [Feature #17724]
</pre>
</div>
</content>
</entry>
<entry>
<title>Pattern matching pin operator against expression [Feature #17411]</title>
<updated>2021-03-21T06:14:31+00:00</updated>
<author>
<name>Kazuki Tsujimoto</name>
<email>kazuki@callcc.net</email>
</author>
<published>2021-03-21T06:12:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=21863470d965b8cc299b1f82417c70d5d26f8ab2'/>
<id>21863470d965b8cc299b1f82417c70d5d26f8ab2</id>
<content type='text'>
This commit is based on the patch by @nobu.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit is based on the patch by @nobu.
</pre>
</div>
</content>
</entry>
<entry>
<title>doc/syntax/pattern_matching.rdoc: fix typos, grammar, style</title>
<updated>2020-12-24T10:35:03+00:00</updated>
<author>
<name>Marcus Stollsteimer</name>
<email>sto.mar@web.de</email>
</author>
<published>2020-12-24T10:35:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9f9a389d95d8a4615b39b196e549e3d5f9d00794'/>
<id>9f9a389d95d8a4615b39b196e549e3d5f9d00794</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
