by bsaul · 5y ago · 0 comments
I'm sorry, what ?? Did i read this correctly ? Are they representing code using either mutable or immutable structures depending on whether the sourcecode has copyright or not ?
I'm really confused...
The representation likely is full of string refs and pointers to the actual data in memory to prevent egregious copying, and the caller of the api should not be able to modify the data structure they receive and accidentally modify the actual file unless they do so through an api intended for it.
Nothing to do with copyright, more that swift-format or your lsp integration should never accidentally modify a file without user initiation.