Hashes and Frozen Keys

The hash class freezes keys that are strings:

This can be a problem if you want to use those keys later on…more specifically, if you want to extract and edit those strings:

Unfortunately, those strings will have to be duped or cloned:

About Nick Hoffman

#FOSS, #startups, #parkour, and #animals.

Share and Enjoy:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Twitter
  • HackerNews
Category(s): Coding
Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

 

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>