-
Notifications
You must be signed in to change notification settings - Fork 275
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
Plan: Migrate to C++98/MIT. 计划迁移到C++98/MIT. #33
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We plan to replace it progressively by C++ 98 code and switch to MIT license.
Summary
关于ST,我计划一点点换成C++ 98/MIT的,它目前有几个痛点:
其实本身ST的LICENSE就是分多部分授权的:
原始LICENSE是这么说的:
参考:State-Threads LICENSE
Why C++98?
为何选择C++ 98?其实我们并不想换语言,C有最好的一致性,另外就是C++ 98了,它实际上也是C++ ANSI标准C++。估计支持最广泛的C++,就是C++98了。
此外,我们只使用C++98中的封装功能,只使用class和成员变量和函数,不使用虚函数,不使用继承,不使用模板,不使用任何高级能力。因为本质上ST在语言上,使用C是最合适的,但是它有大量的宏,本质上就是实现了C++的封装能力,但造成了无法维护的问题,比如:
除非天天看这些代码,偶然看一次,修一修bug,是非常难以理解这些宏定义的。
LICENSE
Original files of State-Threads:
New files and directories:
The text was updated successfully, but these errors were encountered: