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

枚举名称必须唯一性,不支持在不同的包名下存在相同的枚举名称 #2

Open
acgleader opened this issue Apr 9, 2021 · 5 comments

Comments

@acgleader
Copy link

能否开放源码,方便大家自定义开发,和支持新功能:)

@sniper00
Copy link
Owner

sniper00 commented Apr 9, 2021

有空我传下代码

@sniper00
Copy link
Owner

sniper00 commented Apr 9, 2021

关于不同作用域的同名枚举

如果按作用域拼接 会造成枚举名字过长 不方便使用

如果按table嵌套 使用起来也麻烦 并且多次索引影响性能

建议还是自己定义的时候直接按名字区分

@acgleader
Copy link
Author

acgleader commented Apr 10, 2021

这样需要改很多协议,如果性能损失不大,我觉得也可以添加选项支持一下,而且一般都是最多一层package,不会嵌套太多层的

@sniper00
Copy link
Owner

能否开放源码,方便大家自定义开发,和支持新功能:)

源码放上去了

@acgleader
Copy link
Author

能否开放源码,方便大家自定义开发,和支持新功能:)

源码放上去了

好的,谢谢分享:)

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

2 participants