I was looking over the TextParse package and I was surprised to find custom code in this file https://github.com/JuliaComputing/TextParse.jl/blob/master/src/util.jl and function
nonallocating_setindex! that keeps a list of strings around and indexes to them when a string is allocated.
This made me wonder, since this PR means that strings should “technically” be immutable https://github.com/JuliaLang/julia/issues/22193, does the base string type automatically detect if there is an existing reference to a string and if there is just return that reference? If not isn’t this something that should be added? It seems pretty common among garbage collected languages with immutable strings.