Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
ttoinou
8mo ago
0 comments
Share
But in the syntax of scripting language its very easy to create a new string from the old string, destroy old string, replace variable by new string. Which appears mutable from the point of view of the developer
undefined | Better HN
0 comments
default
newest
oldest
SomeoneOnTheWeb
8mo ago
Can't you do the exact same in compiled languages e.g. C or Rust?
shikon7
8mo ago
You can, but allocating and deallocating is more tedious without a GC, and if you care about performance, you might want to have mutable strings.
j
/
k
navigate · click thread line to collapse