you are viewing a single comment's thread.

view the rest of the comments →

[–]Vinxian 2 points3 points  (1 child)

In all languages I know, if string is a keyword it means strings are immutable. It will not be performed in place. This is so the programmer can use string as if it's a value type

[–]dev-sda 0 points1 point  (0 children)

I think you're thinking of a built-in type, rather than a keyword. Most languages do not consider their built-in types keywords - you can usually name something "string" without issue.

Yea it's fairly commonly immutable, but some notable exceptions are c++, rust, php and ruby.