#58 CQuery: internal state should be invisible

已關閉
ranides4 年之前創建 · 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 評論 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 評論 4 年之前'
所有者

sort - OK

sort - OK
ranides 評論 4 年之前'
所有者

we should implement copy-on-write list/set

we should implement copy-on-write list/set
ranides 在代碼提交 4 年之前 中引用了該問題
ranides4 年之前 關閉
ranides 評論 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 年之前 中引用了該問題
登入 才能加入這對話。
未選擇里程碑
未指派成員
1 參與者
正在加載...
取消
保存
尚未有任何內容