Issue #14347 has been updated by dsferreira (Daniel Ferreira).


Thanks Jeremy for this patch.

Could we add to the documentation the definition of identifier in ruby land?

Examples of good usage of symbols would be helpful as well.

This piece could also be extended for the hash in order to specifically document when to use symbols as keys or not explaining why we have two hash notations and when to use one or another.

Method arguments is also an area where symbols have a say.

All of this has a certain level of complexity that clear documentation helps to simplify.

----------------------------------------
Feature #14347: Explain How Symbols Differ From Strings in Symbol's Rdoc
https://bugs.ruby-lang.org/issues/14347#change-69509

* Author: jeremyevans0 (Jeremy Evans)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
This adds more detail to Symbol's RDoc, explaining how symbols differ from strings, and giving examples showing how ruby returns symbols for internal identifiers.

---Files--------------------------------
0001-Add-more-documentation-for-Symbol-class.patch (1.85 KB)


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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>