Just released a brand new collection type on GitHub with a native Swift wrapper you might like 😎 github.com/intuit/Grouped
Conversation
Cool! Why a reference type instead of a value type?
1
It made more sense that way to be able to mirror the underlying ObjC structure. Do you see a meaningful diff. as a class?
2
Replying to
Value semantics are enormously different (cf my objc.io article). You do have the tools.
Replying to
how do you solve the issue of hoisting "unshare()" calls out of loops, etc? Doesn't that required compiler support?
1
Not sure why you need to hoist unshare out of loops if you avoid making a copy of the internal reference until value is mutated
2
Show replies
Replying to
to be clear, I'm talking about in a Swift wrapper as written - not a from-scratch Swift type (e.g. built with Array)

