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

Technology Community › Category: Ruby › Why might you want to avoid using string literals within loops?
VietMX Staff asked 5 years ago

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