#58 CQuery: internal state should be invisible

Fermé
Créé il y a 4 ans par ranides · 4 commentaires
ranides a commenté il y a 4 ans

Internal source list/array/collection should not be exposed by #list #set or #array methods.

#sort and #reverse method should not have impact on source collections too.

We should implement this using SharedList

Internal source list/array/collection should not be exposed by #list #set or #array methods. #sort and #reverse method should not have impact on source collections too. We should implement this using `SharedList`
ranides a commenté il y a 4 ans
Propriétaire

Może zamiast zabawy w SharedList powinniśmy po prostu dodać metody: listview() i tyle?

Może zamiast zabawy w SharedList powinniśmy po prostu dodać metody: listview() i tyle?
ranides a commenté il y a 4 ans
Propriétaire

sort - OK

sort - OK
ranides a commenté il y a 4 ans
Propriétaire

we should implement copy-on-write list/set

we should implement copy-on-write list/set
ranides a référencé ce problème à partir d'un commit il y a 4 ans
ranides a commenté il y a 4 ans
Propriétaire

copy-on-write list is implemented.

methods reviewed:

  • list returns CopyList or new list.
  • set returns new set
  • array returns always new array (cloned)
  • sort returns new list
  • reverse returns reversed read-only list.
copy-on-write list is implemented. methods reviewed: - `list` returns CopyList or new list. - `set` returns new set - `array` returns always new array (cloned) - `sort` returns new list - `reverse` returns reversed read-only list.
ranides a référencé ce problème à partir d'un commit il y a 4 ans
Connectez-vous pour rejoindre cette conversation.
Aucun jalon
Pas d'assignataire
1 Participants
Chargement…
Annuler
Enregistrer
Il n'existe pas encore de contenu.