News for hackers. Stuff that matters.
Re:Things I Was Wrong About: Types by marcosdumay on Sunday September 27, 2020 @09:24AM (#24606429)
You seem to have experience only on languages where strings are immutable, and objects are always mutable. Those properties are not universal.

And yet, despite correctly assessing the problem, you insist on fighting objects instead of mutability.

Re:Things I Was Wrong About: Types by andrekandre on Sunday September 27, 2020 @05:57PM (#24610449)
one of the interesting things in cocoa/foundation is the types are all objects, but they make a big distiction between NSArray and NSMutableArray, same with strings, dictionaries and many other objects

to make things mutable you have to clone them as such and i cant really think of a single api in cocoa/foundation that vends a mutable array or string...

i think its a very good point...