这两行代码违反了 SLAP 原则。
These two lines of code illustrate a violation of the SLAP principle.
如果代码违反了风格政策,则无法通过编译,即开发人员就无法交付工作。
If the code violated the style policy the code compilation failed, i.e. the developer was not able to deliver the result.
关于方法指针,有意思的事情是:它们的使用可能就表明代码违反了迪米特法则。
The interesting thing about method Pointers is that their use can be an indication that the code violates the Law of Demeter.
应用推荐