多接口的缺点是,它招致了静态类型安全性的损失,因为接口只在运行时被选择,这使得系统更容易受到潜伏错误的伤害,即那些逃过测试的错误。
On the downside, multiple interfaces incur a loss of static type safety because interfaces are selected only at runtime, which makes the system more vulnerable to latent bugs that can escape testing.
我喜爱静态类型提供的安全性。
静态类型可以提供更好的安全性,而且显然还可以提高代码的可读性。
Static typing possibly enables better security and definitely improves code readability in places.
应用推荐