Re:Fun with Swift
by fleitz on Monday January 04, 2016 @06:13PM
(#10839509)
I think swift really found the sweet spot in this regard by not thinking about mutability but value/reference semantics.
I've found that in swift the things that should be values are and the things that should be references are, rather than taking an all or nothing approach.
Re:Fun with Swift
by hellofunk on Tuesday January 05, 2016 @06:11AM
(#10842611)
Except in swift, a truly value-oriented thought process is hampered by its copy-on-write semantics, which are a far cry from immutable structures found in functional languages.
I've found that in swift the things that should be values are and the things that should be references are, rather than taking an all or nothing approach.