cfhammill / lenses

Elegant Data Manipulation with Lenses
https://cfhammill.github.io/lenses
Other
27 stars 4 forks source link

Should indices/selectl update names? #4

Closed cfhammill closed 6 years ago

cfhammill commented 6 years ago

Doesn't now, but can see an argument for

cfhammill commented 6 years ago

Voting no, names are metadata for the whole object, not a property of a subpart. @bcdarwin votes that passing a named replacement frame with different names should be an error. I think this is too restrictive, I'd prefer names for replacements just get ignored, as is currently implemented.

cfhammill commented 6 years ago

Answer: no, they would be unlawful since names are used for indexing. Put-get would be violated