We try to be helpful, and answer the questions as asked. We also provide advice for improvements, if the question is likely to lead to a poor program.
Julia gives you as a programmer lots of power, and if you don't follow advice, you might end up in trouble. If you change the internal representation of a string, you will run into trouble in some parts of Julia, because we assume that strings are immutable. If you never let other parts of Julia hold a reference to the string while you are manipulating it, you should be alright. eg. a = Dict() b = "hello" a[b] = 1 b.data[5] = 'a' will make the value in the dictionary inaccessible. julia> a[b] ERROR: key not found: "hella" in getindex at dict.jl:586 julia> a["hello"] ERROR: key not found: "hello" in getindex at dict.jl:586 Ivar kl. 13:42:23 UTC+1 fredag 21. mars 2014 skrev Andreas Lobinger følgende: > > Hello colleagues, > > this conversation is covering one of the most dangerous things that you > can do in SW engineering: > > - How can i do X? > - This is not meant to be used. But i have a work around for you. > > You can be absolutely sure that this will propagate and be the new default > way. > (I'm cleaning up other people's code at the moment, not julia, but > still...) > > >