You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The State Threads library is ...... Mozilla Public License (MPL) version 1.1
or the GNU General Public License (GPL) version 2 or later.
All source code in the "examples" directory is distributed under the BSD style license.
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: