ice
ice copied to clipboard
SlicedData slices should be read-only
They are currently read-only in Swift but not other language mappings. They should be read-only in all language mappings, unless it makes the mapping harder to use.
- [x] C++
- [x] C#
- [x] Java
- [ ] JavaScript/TypeScript
- [x] MATLAB
- ~~PHP~~
- [ ] Python
- [x] Ruby
- [x] Swift
PHP: we could use https://php.watch/versions/8.1/readonly, but then we would also need to add types, and we currently don't do that anywhere else.
Not essential for Python and JS.