Re:Nim in 2018: A short recap
by ptx on Wednesday January 09, 2019 @09:58PM
(#18871156)
>> * Mutable strings
> I love these! No need for messing around with `StringBuilder` and the like.
But if I get a string passed to me and want to hold on to it for later use, I can't be sure that someone else holding a reference to it won't modify it after I got it, right? So I will have to make a copy to be safe. Or does Nim solve this somehow?
> I love these! No need for messing around with `StringBuilder` and the like.
But if I get a string passed to me and want to hold on to it for later use, I can't be sure that someone else holding a reference to it won't modify it after I got it, right? So I will have to make a copy to be safe. Or does Nim solve this somehow?