CINXE.COM

Feature #18585: Promote find pattern to official feature - Ruby master - Ruby Issue Tracking System

<!DOCTYPE html> <html lang="en"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://bugs.ruby-lang.org/issues/18585","20240622010403","https://web.archive.org/","web","/_static/", "1719018243"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <meta charset="utf-8"/> <title>Feature #18585: Promote find pattern to official feature - Ruby master - Ruby Issue Tracking System</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Redmine"/> <meta name="keywords" content="issue,bug,tracker"/> <meta name="robots" content="nofollow"> <meta name="csrf-param" content="authenticity_token"/> <meta name="csrf-token" content="YQ2z6BKCpeqbX2rjExes7uXwaf6ifQTuZ+yA8Qe1paLlWJUXY5DuWuBAuzzU+QdDNtP94gwremMmVuORveSnQw=="/> <link rel="shortcut icon" href="/web/20240622010403im_/https://bugs.ruby-lang.org/favicon.ico?1717995624"/> <link rel="stylesheet" media="all" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/stylesheets/jquery/jquery-ui-1.13.2.css?1717995624"/> <link rel="stylesheet" media="all" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/stylesheets/tribute-5.1.3.css?1717995624"/> <link rel="stylesheet" media="all" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/themes/ruby-lang/stylesheets/application.css?1717995624"/> <link rel="stylesheet" media="all" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/themes/ruby-lang/stylesheets/responsive.css?1717995624"/> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/javascripts/jquery-3.6.1-ui-1.13.2-ujs-6.1.7.6.js?1717995624"></script> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/javascripts/tribute-5.1.3.min.js?1717995624"></script> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/javascripts/tablesort-5.2.1.min.js?1717995624"></script> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/javascripts/tablesort-5.2.1.number.min.js?1717995624"></script> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/javascripts/application.js?1717995624"></script> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/javascripts/responsive.js?1717995624"></script> <script> //<![CDATA[ $(window).on('load', function(){ warnLeavingUnsaved('The current page contains unsaved text that will be lost if you leave this page.'); }); //]]> </script> <script> //<![CDATA[ rm = window.rm || {};rm.AutoComplete = rm.AutoComplete || {};rm.AutoComplete.dataSources = JSON.parse('{"issues":"/issues/auto_complete?project_id=ruby-master\u0026q=","wiki_pages":"/wiki_pages/auto_complete?project_id=ruby-master\u0026q="}'); //]]> </script> <link rel="stylesheet" media="screen" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/plugin_assets/redmine_bugs_ruby_lang/stylesheets/mailing_list_integration.css?1717995665"/> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/plugin_assets/redmine_hearts/javascripts/transplant_heart_link_with_counter.js?1717995665" defer="defer"></script> <link rel="stylesheet" media="screen" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/plugin_assets/redmine_hearts/stylesheets/application.css?1717995665"/> <!-- page specific tags --> <link rel="alternate" type="application/atom+xml" title="Ruby master - Feature #18585: Promote find pattern to official feature" href="https://web.archive.org/web/20240622010403/https://bugs.ruby-lang.org/issues/18585.atom"/> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/javascripts/context_menu.js?1717995624"></script><link rel="stylesheet" media="screen" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/stylesheets/context_menu.css?1717995624"/> <link rel="stylesheet" media="screen" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/plugin_assets/redmineup_tags/stylesheets/redmine_tags.css?1717995665"/> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/plugin_assets/redmineup_tags/javascripts/redmine_tags.js?1717995665"></script> <script src="/web/20240622010403js_/https://bugs.ruby-lang.org/plugin_assets/redmineup/javascripts/select2.js?1717995662"></script><link rel="stylesheet" media="screen" href="/web/20240622010403cs_/https://bugs.ruby-lang.org/plugin_assets/redmineup/stylesheets/select2.css?1717995662"/><script src="/web/20240622010403js_/https://bugs.ruby-lang.org/plugin_assets/redmineup/javascripts/select2_helpers.js?1717995662"></script> </head> <body class="theme-Ruby-lang project-ruby-master has-main-menu controller-issues action-show avatars-on"> <div id="wrapper"> <div class="flyout-menu js-flyout-menu"> <div class="flyout-menu__search"> <form action="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/search" accept-charset="UTF-8" name="form-4f5e9336" method="get"><input name="utf8" type="hidden" value="✓" autocomplete="off"/> <input type="hidden" name="issues" value="1" autocomplete="off"/> <label class="search-magnifier search-magnifier--flyout" for="flyout-search">&#9906;</label> <input type="text" name="q" id="flyout-search" class="small js-search-input" placeholder="Search"/> </form> </div> <h3>Project</h3> <span class="js-project-menu"></span> <h3>General</h3> <span class="js-general-menu"></span> <span class="js-sidebar flyout-menu__sidebar"></span> <h3>Profile</h3> <span class="js-profile-menu"></span> </div> <div id="top-menu"> <div id="account"> <ul><li><a class="login" href="/web/20240622010403/https://bugs.ruby-lang.org/login">Sign in</a></li><li><a class="register" href="/web/20240622010403/https://bugs.ruby-lang.org/account/register">Register</a></li></ul> </div> <ul><li><a class="home" href="/web/20240622010403/https://bugs.ruby-lang.org/">Home</a></li><li><a class="projects" href="/web/20240622010403/https://bugs.ruby-lang.org/projects">Projects</a></li><li><a target="_blank" rel="noopener" class="help" href="https://web.archive.org/web/20240622010403/https://www.redmine.org/guide">Help</a></li></ul></div> <div id="header"> <a href="#" class="mobile-toggle-button js-flyout-menu-toggle-button"></a> <div id="quick-search"> <form action="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/search" accept-charset="UTF-8" name="form-6635a67d" method="get"><input name="utf8" type="hidden" value="✓" autocomplete="off"/> <input type="hidden" name="scope" autocomplete="off"/> <input type="hidden" name="issues" value="1" autocomplete="off"/> <label for="q"> <a accesskey="4" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/search">Search</a>: </label> <input type="text" name="q" id="q" size="20" class="small" accesskey="f" data-auto-complete="true"/> </form> <div id="project-jump" class="drdn"><span class="drdn-trigger">Ruby master</span><div class="drdn-content"><div class="quick-search"><input type="text" name="q" id="projects-quick-search" value="" class="autocomplete" data-automcomplete-url="/projects/autocomplete.js?jump=issues" autocomplete="off"/></div><div class="drdn-items projects selection"></div><div class="drdn-items all-projects selection"><a href="/web/20240622010403/https://bugs.ruby-lang.org/projects?jump=issues">All Projects</a></div></div></div> </div> <h1><span class="breadcrumbs"><a class="root" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby?jump=issues">Ruby</a><span class="separator"> &raquo; </span></span><span class="current-project">Ruby master</span></h1> <div id="main-menu" class="tabs"> <ul><li><a class="overview" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master">Overview</a></li><li><a class="activity" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity">Activity</a></li><li><a class="roadmap" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/roadmap">Roadmap</a></li><li><a class="issues selected" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues">Issues</a></li><li><a class="repository" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/repository">Repository</a></li><li><a class="hearts" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/hearts">Like</a></li></ul> <div class="tabs-buttons" style="display:none;"> <button class="tab-left" onclick="moveTabLeft(this); return false;"></button> <button class="tab-right" onclick="moveTabRight(this); return false;"></button> </div> </div> </div> <div id="main" class=""> <div id="sidebar"> <h3>Custom queries</h3> <ul class="queries"><li><a class="query" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues?query_id=287">Backport 3.1</a></li> <li><a class="query" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues?query_id=293">Backport 3.2</a></li> <li><a class="query" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues?query_id=300">Backport 3.3</a></li> <li><a class="query" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues?query_id=75">bugs: unassigned</a></li> <li><a class="query" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues?query_id=156">DevMeeting</a></li> <li><a class="query" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues?query_id=72">matz</a></li> <li><a class="query" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/issues?query_id=160">Open issues with attachment</a></li></ul> </div> <div id="content"> <div class="contextual"> <span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"> <a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585">Copy link</a> </div></div></span></div> <h2 class="inline-flex">Feature #18585</h2> <span class="badge badge-status-closed">closed</span> <div class="issue tracker-2 status-5 priority-4 priority-default closed details"> <div class="gravatar-with-child"> <img alt="" title="Author: ktsj (Kazuki Tsujimoto)" class="gravatar" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=100&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=50&amp;default=mm"/> <img alt="" title="Assignee: ktsj (Kazuki Tsujimoto)" class="gravatar gravatar-child" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=44&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=22&amp;default=mm"/> </div> <div class="subject"> <div><h3>Promote find pattern to official feature</h3></div> </div> <p class="author"> Added by <a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/3007">ktsj (Kazuki Tsujimoto)</a> <a title="02/14/2022 02:05 PM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-14">over 2 years</a> ago. Updated <a title="02/21/2022 02:43 AM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-21">over 2 years</a> ago. </p> <div class="attributes"> <div class="splitcontent"><div class="splitcontentleft"><div class="status attribute"><div class="label">Status:</div><div class="value">Closed</div></div><div class="assigned-to attribute"><div class="label">Assignee:</div><div class="value"><a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/3007">ktsj (Kazuki Tsujimoto)</a></div></div><div class="fixed-version attribute"><div class="label">Target version:</div><div class="value">-</div></div></div><div class="splitcontentleft"></div></div> <a href="https://web.archive.org/web/20240622010403/https://blade.ruby-lang.org/ruby-core/107574">[ruby-core:107574]</a> </div> <hr/> <div class="description"> <div class="contextual"> </div> <p><strong>Description</strong></p> <div class="wiki"> <p>"Find pattern" has introduced in 3.0 and it is still marked as an experimental.<br> I don't see any problems, so it is time to promote it to official feature.</p> <p>(BTW, it was useful when writing code like the following for a practical example.)</p> <pre><code class="ruby syntaxhl" data-language="ruby"><span class="k">if</span> <span class="n">ary</span> <span class="k">in</span> <span class="p">[</span><span class="o">*</span><span class="p">,</span> <span class="p">{</span><span class="ss">a: </span><span class="mi">0</span><span class="p">,</span> <span class="ss">b: </span><span class="mi">1</span> <span class="o">|</span> <span class="mi">2</span><span class="p">}</span> <span class="o">=&gt;</span> <span class="n">i</span><span class="p">,</span> <span class="o">*</span><span class="p">]</span> <span class="o">...</span> <span class="k">end</span> </code></pre> </div> </div> </div> <div id="history"> <div class="tabs"> <ul> <li><a id="tab-history" class="selected" onclick="showIssueHistory(&quot;history&quot;, this.href); return false;" href="/web/20240622010403/https://bugs.ruby-lang.org/issues/18585?tab=history">History</a></li> <li><a id="tab-notes" onclick="showIssueHistory(&quot;notes&quot;, this.href); return false;" href="/web/20240622010403/https://bugs.ruby-lang.org/issues/18585?tab=notes">Notes</a></li> <li><a id="tab-properties" onclick="showIssueHistory(&quot;properties&quot;, this.href); return false;" href="/web/20240622010403/https://bugs.ruby-lang.org/issues/18585?tab=properties">Property changes</a></li> <li><a id="tab-changesets" onclick="getRemoteTab('changesets', '/issues/18585/tab/changesets', '/issues/18585?tab=changesets'); return false;" href="/web/20240622010403/https://bugs.ruby-lang.org/issues/18585?tab=changesets">Associated revisions</a></li> </ul> <div class="tabs-buttons" style="display:none;"> <button class="tab-left" type="button" onclick="moveTabLeft(this);"></button> <button class="tab-right" type="button" onclick="moveTabRight(this);"></button> </div> </div> <div id="tab-content-history" class="tab-content"> <div id="change-96489" class="journal has-notes"> <div id="note-1" class="note"> <div class="contextual"> <span class="journal-actions"><span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"><a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585#note-1">Copy link</a></div></div></span></span> <a href="#note-1" class="journal-link">#1</a> <a class="journal-link" style="padding-right: 0.5em" href="https://web.archive.org/web/20240622010403/https://blade.ruby-lang.org/ruby-core/107578">[ruby-core:107578]</a> </div> <h4 class="note-header"> <img alt="" title="retro (Josef Šimánek)" class="gravatar" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/b5d361c5cdfa815082d54022bc45ece2?rating=PG&amp;size=48&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/b5d361c5cdfa815082d54022bc45ece2?rating=PG&amp;size=24&amp;default=mm"/> Updated by <a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/8893">retro (Josef Šimánek)</a> <a title="02/14/2022 02:29 PM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-14">over 2 years</a> ago <span id="journal-96489-private_notes" class=""></span> </h4> <div id="journal-96489-notes" class="wiki"><p>Hello! Is this request related to the whole feature (as described at <a href="https://web.archive.org/web/20240622010403/https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html" class="external">https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html</a>) or only to one pattern called "Find pattern" (as described at <a href="https://web.archive.org/web/20240622010403/https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns" class="external">https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns</a>)?</p></div> </div> </div> <div id="change-96504" class="journal has-notes"> <div id="note-2" class="note"> <div class="contextual"> <span class="journal-actions"><span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"><a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585#note-2">Copy link</a></div></div></span></span> <a href="#note-2" class="journal-link">#2</a> <a class="journal-link" style="padding-right: 0.5em" href="https://web.archive.org/web/20240622010403/https://blade.ruby-lang.org/ruby-core/107592">[ruby-core:107592]</a> </div> <h4 class="note-header"> <img alt="" title="ktsj (Kazuki Tsujimoto)" class="gravatar" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=48&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=24&amp;default=mm"/> Updated by <a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/3007">ktsj (Kazuki Tsujimoto)</a> <a title="02/15/2022 02:32 PM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-15">over 2 years</a> ago <span id="journal-96504-private_notes" class=""></span> </h4> <div id="journal-96504-notes" class="wiki"><blockquote> <p>Is this request related to the whole feature (as described at <a href="https://web.archive.org/web/20240622010403/https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html" class="external">https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html</a>) or only to one pattern called "Find pattern" (as described at <a href="https://web.archive.org/web/20240622010403/https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns" class="external">https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns</a>)?</p> </blockquote> <p>There is no difference between the two.<br> Except find pattern, pattern matching is already official feature.</p></div> </div> </div> <div id="change-96528" class="journal has-notes"> <div id="note-3" class="note"> <div class="contextual"> <span class="journal-actions"><span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"><a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585#note-3">Copy link</a></div></div></span></span> <a href="#note-3" class="journal-link">#3</a> <a class="journal-link" style="padding-right: 0.5em" href="https://web.archive.org/web/20240622010403/https://blade.ruby-lang.org/ruby-core/107617">[ruby-core:107617]</a> </div> <h4 class="note-header"> <img alt="" title="matz (Yukihiro Matsumoto)" class="gravatar" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/6738588a11b852833edf6aec90ef6fa3?rating=PG&amp;size=48&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/6738588a11b852833edf6aec90ef6fa3?rating=PG&amp;size=24&amp;default=mm"/> Updated by <a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/13">matz (Yukihiro Matsumoto)</a> <a title="02/17/2022 08:49 AM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-17">over 2 years</a> ago <span id="journal-96528-private_notes" class=""></span> </h4> <div id="journal-96528-notes" class="wiki"><p>Accepted. Congratulations.</p> <p>Matz.</p></div> </div> </div> <div id="change-96561" class="journal has-notes"> <div id="note-4" class="note"> <div class="contextual"> <span class="journal-actions"><span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"><a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585#note-4">Copy link</a></div></div></span></span> <a href="#note-4" class="journal-link">#4</a> <a class="journal-link" style="padding-right: 0.5em" href="https://web.archive.org/web/20240622010403/https://blade.ruby-lang.org/ruby-core/107648">[ruby-core:107648]</a> </div> <h4 class="note-header"> <img alt="" title="retro (Josef Šimánek)" class="gravatar" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/b5d361c5cdfa815082d54022bc45ece2?rating=PG&amp;size=48&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/b5d361c5cdfa815082d54022bc45ece2?rating=PG&amp;size=24&amp;default=mm"/> Updated by <a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/8893">retro (Josef Šimánek)</a> <a title="02/17/2022 07:29 PM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-17">over 2 years</a> ago <span id="journal-96561-private_notes" class=""></span> </h4> <div id="journal-96561-notes" class="wiki"><p>ktsj (Kazuki Tsujimoto) wrote in <a href="#note-2">#note-2</a>:</p> <blockquote> <blockquote> <p>Is this request related to the whole feature (as described at <a href="https://web.archive.org/web/20240622010403/https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html" class="external">https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html</a>) or only to one pattern called "Find pattern" (as described at <a href="https://web.archive.org/web/20240622010403/https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns" class="external">https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns</a>)?</p> </blockquote> <p>There is no difference between the two.<br> Except find pattern, pattern matching is already official feature.</p> </blockquote> <p>Thanks for the info.</p> <p>matz (Yukihiro Matsumoto) wrote in <a href="#note-3">#note-3</a>:</p> <blockquote> <p>Accepted. Congratulations.</p> <p>Matz.</p> </blockquote> <p>Would be PR welcomed for this change?</p></div> </div> </div> <div id="change-96583" class="journal has-notes has-details"> <div id="note-5" class="note"> <div class="contextual"> <span class="journal-actions"><span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"><a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585#note-5">Copy link</a></div></div></span></span> <a href="#note-5" class="journal-link">#5</a> </div> <h4 class="note-header"> <img alt="" title="ktsj (Kazuki Tsujimoto)" class="gravatar" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=48&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=24&amp;default=mm"/> Updated by <a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/3007">ktsj (Kazuki Tsujimoto)</a> <a title="02/19/2022 10:06 AM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-19">over 2 years</a> ago <span id="journal-96583-private_notes" class=""></span> </h4> <ul class="details"> <li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li> </ul> <div id="journal-96583-notes" class="wiki"><p>Applied in changeset <a class="changeset" title="Find pattern is no longer experimental [Feature #18585]" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/db6b23c76cbc7888cd9a9912790c2068703afdd0">git|db6b23c76cbc7888cd9a9912790c2068703afdd0</a>.</p> <hr> <p>Find pattern is no longer experimental [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Promote find pattern to official feature (Closed)" href="/web/20240622010403/https://bugs.ruby-lang.org/issues/18585">#18585</a>]</p></div> </div> </div> <div id="change-96595" class="journal has-notes"> <div id="note-6" class="note"> <div class="contextual"> <span class="journal-actions"><span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"><a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585#note-6">Copy link</a></div></div></span></span> <a href="#note-6" class="journal-link">#6</a> <a class="journal-link" style="padding-right: 0.5em" href="https://web.archive.org/web/20240622010403/https://blade.ruby-lang.org/ruby-core/107676">[ruby-core:107676]</a> </div> <h4 class="note-header"> <img alt="" title="ktsj (Kazuki Tsujimoto)" class="gravatar" srcset="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=48&amp;default=mm 2x" src="https://web.archive.org/web/20240622010403im_/https://www.gravatar.com/avatar/303dd57f37d64288bb4f0336332a8882?rating=PG&amp;size=24&amp;default=mm"/> Updated by <a class="user active" href="/web/20240622010403/https://bugs.ruby-lang.org/users/3007">ktsj (Kazuki Tsujimoto)</a> <a title="02/21/2022 02:43 AM" href="/web/20240622010403/https://bugs.ruby-lang.org/projects/ruby-master/activity?from=2022-02-21">over 2 years</a> ago <span id="journal-96595-private_notes" class=""></span> </h4> <div id="journal-96595-notes" class="wiki"><p>retro (Josef Šimánek) wrote in <a href="#note-4">#note-4</a>:</p> <blockquote> <p>Would be PR welcomed for this change?</p> </blockquote> <p>I've already merged the patch. Thanks.</p></div> </div> </div> </div> <div id="tab-content-changesets" style="display:none" class="tab-content"></div> <script> //<![CDATA[ showIssueHistory("history", this.href) //]]> </script> </div> <div style="clear: both;"></div> <div class="contextual"> <span class="drdn"><span class="drdn-trigger"><span class="icon-only icon-actions" title="Actions">Actions</span></span><div class="drdn-content"><div class="drdn-items"> <a href="#" onclick="copyTextToClipboard(this);; return false;" class="icon icon-copy-link" data-clipboard-text="https://bugs.ruby-lang.org/issues/18585">Copy link</a> </div></div></span></div> <div style="clear: both;"></div> <p class="other-formats">Also available in: <span><a class="atom" rel="nofollow" href="/web/20240622010403/https://bugs.ruby-lang.org/issues/18585.atom">Atom</a></span> <span><a class="pdf" rel="nofollow" href="/web/20240622010403/https://bugs.ruby-lang.org/issues/18585.pdf">PDF</a></span> </p> <span class="issue-18585-heart heart-link-with-count"><span class="icon icon-heart-off"><span class="heart-link-label">Like</span></span><span class="heart-count-number">0</span></span> <div class="journal-heart-holder"> <span class="journal-96489-heart heart-link-with-count"><span class="icon icon-heart-off"><span class="heart-link-label">Like</span></span><span class="heart-count-number">0</span></span><span class="journal-96504-heart heart-link-with-count"><span class="icon icon-heart-off"><span class="heart-link-label">Like</span></span><span class="heart-count-number">0</span></span><span class="journal-96528-heart heart-link-with-count"><span class="icon icon-heart-off"><span class="heart-link-label">Like</span></span><span class="heart-count-number">0</span></span><span class="journal-96561-heart heart-link-with-count"><span class="icon icon-heart-off"><span class="heart-link-label">Like</span></span><span class="heart-count-number">0</span></span><span class="journal-96583-heart heart-link-with-count"><span class="icon icon-heart-off"><span class="heart-link-label">Like</span></span><span class="heart-count-number">0</span></span><span class="journal-96595-heart heart-link-with-count"><span class="icon icon-heart-off"><span class="heart-link-label">Like</span></span><span class="heart-count-number">0</span></span> </div> <div style="clear:both;"></div> </div> </div> <div id="footer"> Powered by <a target="_blank" rel="noopener" href="https://web.archive.org/web/20240622010403/https://www.redmine.org/">Redmine</a> &copy; 2006-2024 Jean-Philippe Lang </div> <div id="ajax-indicator" style="display:none;"><span>Loading...</span></div> <div id="ajax-modal" style="display:none;"></div> </div> <script> //<![CDATA[ setSelect2Filter('issue_tags', {"url":"/auto_completes/redmine_tags"}); //]]> </script> </body> </html> <!-- FILE ARCHIVED ON 01:04:03 Jun 22, 2024 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 10:59:55 Dec 04, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 2.738 exclusion.robots: 0.033 exclusion.robots.policy: 0.021 esindex: 0.026 cdx.remote: 130.225 LoadShardBlock: 145.588 (3) PetaboxLoader3.datanode: 236.229 (4) load_resource: 215.595 PetaboxLoader3.resolve: 113.204 -->

Pages: 1 2 3 4 5 6 7 8 9 10