AbstractString中的immutable mutable子类型有哪些

我犯错了,我把String进行===比较了。

  • As in Java, strings are immutable: the value of an AbstractString object cannot be changed. To construct a different string value, you construct a new string from parts of other strings.
    —— Strings · The Julia Language

所以嘛,想改就用数组把

搜到一个过气的包 tanmaykm/MutableStrings.jl: Mutable string types for Julia


julia> subtypes(AbstractString)
4-element Array{Any,1}:
 String
 SubString
 SubstitutionString
 Test.GenericString