JuliaArrays / ReadOnlyArrays.jl

A wrapper type around AbstractArray that is read-only
Other
27 stars 5 forks source link

`ReadOnlySet` and `ReadOnlyDict`? #7

Open wmanning-cra opened 2 years ago

wmanning-cra commented 2 years ago

Would it be out-of-scope to add similar wrappers for AbstractDictionary and AbstractSet? There is a built-in Base.ImmutableDict, but my understanding is that it's a very particular structure with particular use-cases, not meant to be seamlessly dropped in place of a Dict.

The downside is that it would make the name of this package a bit awkward.

bkamins commented 2 years ago

I am OK to add them (in general - as commented earlier - I am even OK to transfer the repo and rename it as you like). Renaming is not problematic as old links will still work.