#58 CQuery: internal state should be invisible

Ditutup
dibuka 4 tahun lalu oleh ranides · 4 komentar

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 komentar 4 tahun lalu
Pemilik

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 komentar 4 tahun lalu
Pemilik

sort - OK

sort - OK
ranides komentar 4 tahun lalu
Pemilik

we should implement copy-on-write list/set

we should implement copy-on-write list/set
ranides referenced this issue from a commit 4 tahun lalu
ranides komentar 4 tahun lalu
Pemilik

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 referenced this issue from a commit 4 tahun lalu
Masuk untuk bergabung dalam percakapan ini.
Tidak ada tonggak
Tidak ada penerima
1 Peserta
Memuat...
Batal
Simpan
Belum ada konten.