#58 CQuery: internal state should be invisible

Zamknięty
otworzone 4 lat temu przez ranides · 4 komentarzy
ranides skomentował 4 lat temu

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 skomentował 4 lat temu
Właściciel

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 skomentował 4 lat temu
Właściciel

sort - OK

sort - OK
ranides skomentował 4 lat temu
Właściciel

we should implement copy-on-write list/set

we should implement copy-on-write list/set
ranides wspomina ten problem w commicie 4 lat temu
ranides skomentował 4 lat temu
Właściciel

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 wspomina ten problem w commicie 4 lat temu
Zaloguj się, aby dołączyć do tej rozmowy.
Brak kamienia milowego
Brak przypisania
1 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.