Immutable Strings Are of Higher Demand
Eugene Darashkevich, Yegor Bugayenko · 2024
Each programming language implements its own standard library, which includes its own set of functions for manipulating with strings. We analyzed 10 popular languages and aggregated all 614 string functions found in their libraries. We identified a set of most popular functions. Also, we found out that a few most popular and demanded functionalities have lower complexity if strings are immutable. That's why we suggest designers of new languages to make strings immutable, if they aim for higher performance vs. smaller memory footprint.