Project

General

Profile

Actions

Feature #18585

closed

Promote find pattern to official feature

Added by ktsj (Kazuki Tsujimoto) 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:107574]

Description

"Find pattern" has introduced in 3.0 and it is still marked as an experimental.
I don't see any problems, so it is time to promote it to official feature.

(BTW, it was useful when writing code like the following for a practical example.)

if ary in [*, {a: 0, b: 1 | 2} => i, *]
  ...
end

Updated by retro (Josef Šimánek) 5 months ago

Hello! Is this request related to the whole feature (as described at https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html) or only to one pattern called "Find pattern" (as described at https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns)?

Updated by ktsj (Kazuki Tsujimoto) 5 months ago

Is this request related to the whole feature (as described at https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html) or only to one pattern called "Find pattern" (as described at https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns)?

There is no difference between the two.
Except find pattern, pattern matching is already official feature.

Updated by matz (Yukihiro Matsumoto) 4 months ago

Accepted. Congratulations.

Matz.

Updated by retro (Josef Šimánek) 4 months ago

ktsj (Kazuki Tsujimoto) wrote in #note-2:

Is this request related to the whole feature (as described at https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html) or only to one pattern called "Find pattern" (as described at https://docs.ruby-lang.org/en/3.1/doc/syntax/pattern_matching_rdoc.html#label-Patterns)?

There is no difference between the two.
Except find pattern, pattern matching is already official feature.

Thanks for the info.

matz (Yukihiro Matsumoto) wrote in #note-3:

Accepted. Congratulations.

Matz.

Would be PR welcomed for this change?

Actions #5

Updated by ktsj (Kazuki Tsujimoto) 4 months ago

  • Status changed from Assigned to Closed

Applied in changeset git|db6b23c76cbc7888cd9a9912790c2068703afdd0.


Find pattern is no longer experimental [Feature #18585]

Updated by ktsj (Kazuki Tsujimoto) 4 months ago

retro (Josef Šimánek) wrote in #note-4:

Would be PR welcomed for this change?

I've already merged the patch. Thanks.

Actions

Also available in: Atom PDF