https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112021-06-14T23:21:43ZRuby Issue Tracking SystemRuby master - Feature #17950: Unable to pattern-match against a String keyhttps://redmine.ruby-lang.org/issues/17950?journal_id=924722021-06-14T23:21:43Zjeremyevans0 (Jeremy Evans)merch-redmine@jeremyevans.net
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li><li><strong>ruby -v</strong> deleted (<del><i>3.0.1</i></del>)</li><li><strong>Backport</strong> deleted (<del><i>2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN</i></del>)</li></ul><p>The fact that only symbol keys are supported is documented (<a href="https://docs.ruby-lang.org/en/master/doc/syntax/pattern_matching_rdoc.html#label-Patterns" class="external">https://docs.ruby-lang.org/en/master/doc/syntax/pattern_matching_rdoc.html#label-Patterns</a>), so this is expected and not a bug. Switching to feature request.</p> Ruby master - Feature #17950: Unable to pattern-match against a String keyhttps://redmine.ruby-lang.org/issues/17950?journal_id=924862021-06-15T11:42:31Zchucke (Tiago Cardoso)
<ul></ul><blockquote>
<p>Switching to feature request.</p>
</blockquote>
<p>Makes sense. Hopefully the example of matching HTTP headers makes it a compelling case for such.</p>