#58 CQuery: internal state should be invisible

已關閉
ranides4 年之前創建 · 4 條評論
ranides commented 4 年之前

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 commented 4 年之前
所有者

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 commented 4 年之前
所有者

sort - OK

sort - OK
ranides commented 4 年之前
所有者

we should implement copy-on-write list/set

we should implement copy-on-write list/set
ranides 在代碼提交 4 年之前 中引用了該問題
ranides4 年之前 關閉
ranides commented 4 年之前
所有者

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 在代碼提交 4 年之前 中引用了該問題
Sign in to join this conversation.
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容