Why might you want to avoid using string literals within loops?

Technology CommunityCategory: RubyWhy might you want to avoid using string literals within loops?
VietMX Staff asked 3 years ago

A new object is created for every string literal even when the values are identical. Consider using variables or symbols instead.