Follow Slashdot stories on Twitter
Nickname:
Password:
Strings are immutable pass-by-reference objects in most modern languages. Why did you make this decision?
Value semantics in Swift are very efficient, as values that don't change are never actually copied.
There may be more comments in this discussion. Without JavaScript enabled, you might want to turn on Classic Discussion System in your preferences instead.
HOST SYSTEM NOT RESPONDING, PROBABLY DOWN. DO YOU WANT TO WAIT? (Y/N)
Why are strings passed by value? (Score:4, Interesting)
Strings are immutable pass-by-reference objects in most modern languages. Why did you make this decision?
Re:Why are strings passed by value? (Score:1)
Value semantics in Swift are very efficient, as values that don't change are never actually copied.