Ownership adoption case study: building a wrapper type

str1.myMutableExt.mutatingMethod() // :cross_mark: sorry, but not working

We always planned to fix this but haven't committed to a solution. @John_McCall alluded the "re-borrowing" approach here: `exclusive` parameter ownership modifier - #23 by John_McCall

While I don't think it's been pitched yet, I like everything about it... except the name :) It should be called the "exclusive-copy" approach.

The Mutable/Immutable type dichotomy is annoying but pretty fundamental to Swift ownership as @John_McCall explained here:

I’ll leave it to others to suggest struct-extension alternatives.

2 Likes