Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ttoinou
11mo ago
0 comments
Save
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
0 comments
2 comments · 1 top-level
top
newest
oldest
SomeoneOnTheWeb
11mo ago
· 1 in thread
Can't you do the exact same in compiled languages e.g. C or Rust?
shikon7
11mo 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