• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Avoid unnecessary object instantiation (Wincent Strings Utility, 7fcfe27)

Created 12/25/2007, updated 3/5/2024
  • snippets

There is no need to create a new string object here; we can just return the string object returned to us by the system.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Add specs for missing command line switches (Wincent Strings Utility, 247c21e)
Support recursive substitution (Wincent Strings Utility, 93b954c) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).