Like we have #[pyclass(unsendable)] to opt-out of Send, many users will not want their pyclass to be mutable. It would be nice if we could allow them to opt-out of having PyCell as the backend, so that they don't have to deal with the performance cost.
Perhaps this opt-out could be #[pyclass(immutable)] ?
Though TBH I think I prefer immutable-by-default, so perhaps we should have #[pyclass(mutable)] to opt-in to PyCell!
Could we couch this in terms of exclusive and non-exclusive access rather than mutability?
Most helpful comment
Could we couch this in terms of exclusive and non-exclusive access rather than mutability?