Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDOrderedDict 这个类的命名有点不合适 #14

Open
liuduoios opened this issue Oct 7, 2022 · 0 comments
Open

SDOrderedDict 这个类的命名有点不合适 #14

liuduoios opened this issue Oct 7, 2022 · 0 comments

Comments

@liuduoios
Copy link

看了一下 SDOrderedDict 这个类的实现,是用来保存多个 key 相同的 value 的。而 Ordered 这个单词是表示”有序“的意思,大部分编程语言或者其标准库中都有 OrderedSet、OrderedMap、OrderedDictionary 的概念,表示这个容器内的元素是按 Key 排序的。
这里的 SDOrderedDict 是一个可包含重复 key 的元素的容器,可以参考 C++ STL 的命名,叫做 "MultiDict" 会更合适一些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant