ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:107574] [Ruby master Feature#18585] Promote find pattern to official feature
@ 2022-02-14 14:05 ktsj (Kazuki Tsujimoto)
  2022-02-14 14:29 ` [ruby-core:107578] " retro
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ktsj (Kazuki Tsujimoto) @ 2022-02-14 14:05 UTC (permalink / raw
  To: ruby-core

Issue #18585 has been reported by ktsj (Kazuki Tsujimoto).

----------------------------------------
Feature #18585: Promote find pattern to official feature
https://bugs.ruby-lang.org/issues/18585

* Author: ktsj (Kazuki Tsujimoto)
* Status: Assigned
* Priority: Normal
* Assignee: ktsj (Kazuki Tsujimoto)
----------------------------------------
"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.)

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



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:107578] [Ruby master Feature#18585] Promote find pattern to official feature
  2022-02-14 14:05 [ruby-core:107574] [Ruby master Feature#18585] Promote find pattern to official feature ktsj (Kazuki Tsujimoto)
@ 2022-02-14 14:29 ` retro
  2022-02-15 14:32 ` [ruby-core:107592] " ktsj (Kazuki Tsujimoto)
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: retro @ 2022-02-14 14:29 UTC (permalink / raw
  To: ruby-core

Issue #18585 has been updated by retro (Josef Šimánek).


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)?

----------------------------------------
Feature #18585: Promote find pattern to official feature
https://bugs.ruby-lang.org/issues/18585#change-96489

* Author: ktsj (Kazuki Tsujimoto)
* Status: Assigned
* Priority: Normal
* Assignee: ktsj (Kazuki Tsujimoto)
----------------------------------------
"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.)

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



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:107592] [Ruby master Feature#18585] Promote find pattern to official feature
  2022-02-14 14:05 [ruby-core:107574] [Ruby master Feature#18585] Promote find pattern to official feature ktsj (Kazuki Tsujimoto)
  2022-02-14 14:29 ` [ruby-core:107578] " retro
@ 2022-02-15 14:32 ` ktsj (Kazuki Tsujimoto)
  2022-02-17  8:49 ` [ruby-core:107617] " matz (Yukihiro Matsumoto)
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ktsj (Kazuki Tsujimoto) @ 2022-02-15 14:32 UTC (permalink / raw
  To: ruby-core

Issue #18585 has been updated by ktsj (Kazuki Tsujimoto).


> 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.


----------------------------------------
Feature #18585: Promote find pattern to official feature
https://bugs.ruby-lang.org/issues/18585#change-96504

* Author: ktsj (Kazuki Tsujimoto)
* Status: Assigned
* Priority: Normal
* Assignee: ktsj (Kazuki Tsujimoto)
----------------------------------------
"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.)

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



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:107617] [Ruby master Feature#18585] Promote find pattern to official feature
  2022-02-14 14:05 [ruby-core:107574] [Ruby master Feature#18585] Promote find pattern to official feature ktsj (Kazuki Tsujimoto)
  2022-02-14 14:29 ` [ruby-core:107578] " retro
  2022-02-15 14:32 ` [ruby-core:107592] " ktsj (Kazuki Tsujimoto)
@ 2022-02-17  8:49 ` matz (Yukihiro Matsumoto)
  2022-02-17 19:29 ` [ruby-core:107648] " retro
  2022-02-21  2:43 ` [ruby-core:107676] " ktsj (Kazuki Tsujimoto)
  4 siblings, 0 replies; 6+ messages in thread
From: matz (Yukihiro Matsumoto) @ 2022-02-17  8:49 UTC (permalink / raw
  To: ruby-core

Issue #18585 has been updated by matz (Yukihiro Matsumoto).


Accepted. Congratulations.

Matz.


----------------------------------------
Feature #18585: Promote find pattern to official feature
https://bugs.ruby-lang.org/issues/18585#change-96528

* Author: ktsj (Kazuki Tsujimoto)
* Status: Assigned
* Priority: Normal
* Assignee: ktsj (Kazuki Tsujimoto)
----------------------------------------
"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.)

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



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:107648] [Ruby master Feature#18585] Promote find pattern to official feature
  2022-02-14 14:05 [ruby-core:107574] [Ruby master Feature#18585] Promote find pattern to official feature ktsj (Kazuki Tsujimoto)
                   ` (2 preceding siblings ...)
  2022-02-17  8:49 ` [ruby-core:107617] " matz (Yukihiro Matsumoto)
@ 2022-02-17 19:29 ` retro
  2022-02-21  2:43 ` [ruby-core:107676] " ktsj (Kazuki Tsujimoto)
  4 siblings, 0 replies; 6+ messages in thread
From: retro @ 2022-02-17 19:29 UTC (permalink / raw
  To: ruby-core

Issue #18585 has been updated by retro (Josef Šimánek).


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?

----------------------------------------
Feature #18585: Promote find pattern to official feature
https://bugs.ruby-lang.org/issues/18585#change-96561

* Author: ktsj (Kazuki Tsujimoto)
* Status: Assigned
* Priority: Normal
* Assignee: ktsj (Kazuki Tsujimoto)
----------------------------------------
"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.)

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



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:107676] [Ruby master Feature#18585] Promote find pattern to official feature
  2022-02-14 14:05 [ruby-core:107574] [Ruby master Feature#18585] Promote find pattern to official feature ktsj (Kazuki Tsujimoto)
                   ` (3 preceding siblings ...)
  2022-02-17 19:29 ` [ruby-core:107648] " retro
@ 2022-02-21  2:43 ` ktsj (Kazuki Tsujimoto)
  4 siblings, 0 replies; 6+ messages in thread
From: ktsj (Kazuki Tsujimoto) @ 2022-02-21  2:43 UTC (permalink / raw
  To: ruby-core

Issue #18585 has been updated by ktsj (Kazuki Tsujimoto).


retro (Josef Šimánek) wrote in #note-4:
> Would be PR welcomed for this change?

I've already merged the patch. Thanks.


----------------------------------------
Feature #18585: Promote find pattern to official feature
https://bugs.ruby-lang.org/issues/18585#change-96595

* Author: ktsj (Kazuki Tsujimoto)
* Status: Closed
* Priority: Normal
* Assignee: ktsj (Kazuki Tsujimoto)
----------------------------------------
"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.)

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



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-21  2:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14 14:05 [ruby-core:107574] [Ruby master Feature#18585] Promote find pattern to official feature ktsj (Kazuki Tsujimoto)
2022-02-14 14:29 ` [ruby-core:107578] " retro
2022-02-15 14:32 ` [ruby-core:107592] " ktsj (Kazuki Tsujimoto)
2022-02-17  8:49 ` [ruby-core:107617] " matz (Yukihiro Matsumoto)
2022-02-17 19:29 ` [ruby-core:107648] " retro
2022-02-21  2:43 ` [ruby-core:107676] " ktsj (Kazuki Tsujimoto)

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).