Hacker News new | ask | show | jobs
by dfkf 4114 days ago
It is one of those cases where you can actually leak memory with a GC. But at least Java gives (gave?) you a choice: to create a new string a use the current one, in .NET substring always returns a new string.