Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    I don't think you understand what "immutable" means. Commented Jan 3, 2013 at 12:08
  • I doesn't appear you are mutating any strings in that code. What is the problem you are seeing? Commented Jan 3, 2013 at 12:09
  • 3
    This has nothing to do with mutability but with scope - global versus local variables. Commented Jan 3, 2013 at 12:09