Project

General

Profile

Actions

Misc #17329

closed

Doc for pattern match?

Added by marcandre (Marc-Andre Lafortune) 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:100882]

Description

Is there an official doc for pattern matching?

I note that case in https://ruby-doc.org/core-2.7.2/doc/syntax/control_expressions_rdoc.html does not mention it, and in does not appear.

Updated by zverok (Victor Shepelev) 10 months ago

Funny.

Here: https://docs.ruby-lang.org/en/master/doc/syntax/control_expressions_rdoc.html#label-case+Expression we have

Since Ruby 2.7, case expressions also provide ....

I added the docs after the release of 2.7, unfortunately. Maybe ruby-doc.org doesn't refetch it for minor versions? It seems to correspond to https://docs.ruby-lang.org/en/2.7.0/doc/syntax/control_expressions_rdoc.html#label-case+Expression

Arrgh, also I see that on docs.ruby-lang.org "[on its own page]" in the last phrase is NOT linked to https://docs.ruby-lang.org/en/master/doc/syntax/pattern_matching_rdoc.html somehow :(

Updated by zverok (Victor Shepelev) 10 months ago

(As an aside note, I really believe Ruby needs some kind of "Documentation working group", the current state of things is errrrm sub-optimal.)

Updated by marcandre (Marc-Andre Lafortune) 10 months ago

Ohh, glad to see it's there, not updated.

There have been many improvements by @BurdetteLamar, we should definitely update the published doc as it is today.

Who has access to do that?

Updated by zverok (Victor Shepelev) 10 months ago

Who has access to do that?

If you mean access to ruby-doc.org, I believe it is one-person project. Last time I wanted something to be fixed there I've just contacted maintainer on Twitter: https://twitter.com/zverok/status/1210512556449763329 (responses are currently removed, but he answered quickly and fixed the problem).

Actions #5

Updated by marcandre (Marc-Andre Lafortune) 10 months ago

  • Status changed from Open to Closed

Ah, I confused both sites. Closing this then.

Actions

Also available in: Atom PDF