difference between :label and variable

Maggie Q Roth <[email protected]> Fri, 1 Nov 2019 08:57:00 +0800
Newsgroups gmane.comp.lang.ruby.general
Message-ID <CAGuZRKNyd2RpkU5pUYc5p1OK6ZOOwoE4Z7NjDzhi39vf7du1mw@mail.gmail.com>
dear members,

what's the difference between :label and variable?
I saw many hashes use :label as key, which has advantages than variable
keys?

Thank you.
Maggie


Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>