Purity also facilitates testing, for instance through QuickCheck, especially if the program is structured around a lot of small functions combined together.
纯洁性也有利于测试,尤其当程序的结构是由许多小函数嵌合而成的时候;比如Haskell的纯洁性就有效地降低了通过QuickCheck(译注:Haskell开源测试框架)进行测试的难度。
Purity also facilitates testing, for instance through QuickCheck, especially if the program is structured around a lot of small functions combined together.
纯洁性也有利于测试,尤其当程序的结构是由许多小函数嵌合而成的时候;比如Haskell的纯洁性就有效地降低了通过QuickCheck(译注:Haskell开源测试框架)进行测试的难度。
应用推荐