From: burdettelamar@yahoo.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:99360] [Ruby master Misc#17053] RDoc for Hash Keys
Date: Mon, 27 Jul 2020 19:36:11 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-86760.20200727193610.27595@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-17053.20200727154250.27595@ruby-lang.org
Issue #17053 has been updated by burdettelamar@yahoo.com (Burdette Lamar).
Thanks, @marcandre. Your first update above makes things much clearer to me. I'll continue studying this.
----------------------------------------
Misc #17053: RDoc for Hash Keys
https://bugs.ruby-lang.org/issues/17053#change-86760
* Author: burdettelamar@yahoo.com (Burdette Lamar)
* Status: Open
* Priority: Normal
----------------------------------------
@marcandre writes, about the Hash Rdoc at https://docs.ruby-lang.org/en/master/Hash.html#class-Hash-label-Hash+Keys :
> The only thing I would change is that I would shorten the doc on the "Invalid Hash Keys". As far as I know, this is simply not a important concern as nearly all Ruby objects respond_to? :hash and :eql?
> I personally would recommend adding a single example in the Hash.html#class-Hash-label-Hash+Keys section and I would remove the rest, or at least remove the examples. They burden the reader with something that is of no use to them.
I have misgivings:
* Some of this material is very old, like the text and example for user-defined hash keys.
* Some material I consolidated from earlier doc for individual methods, which now link to the relevant sections.
* All is factual, and not repeated elsewhere in the page.
My view has been this: This is API reference documentation. Ruby/ruby should have *the reference documentation*, and therefore should omit nothing.
If material such as this is to be included, I see three possibilities:
* Include in-line, as now.
* Link to on-page 'footnote', with Back link.
* Link to off-page rdoc, likely in doc/ dir.
I'd love to hear some opinions on this.
--
https://bugs.ruby-lang.org/
prev parent reply other threads:[~2020-07-27 19:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-27 15:42 [ruby-core:99354] [Ruby master Bug#17053] RDoc for Hash Keys burdettelamar
2020-07-27 16:36 ` [ruby-core:99355] [Ruby master Misc#17053] " sawadatsuyoshi
2020-07-27 17:55 ` [ruby-core:99356] " burdettelamar
2020-07-27 18:37 ` [ruby-core:99357] " marcandre-ruby-core
2020-07-27 19:22 ` [ruby-core:99358] " marcandre-ruby-core
2020-07-27 19:36 ` burdettelamar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-86760.20200727193610.27595@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).