Should I use common::sense or just stick with `use strict` and `use warnings`?

后端 未结 9 990
自闭症患者
自闭症患者 2021-01-08 00:37

I recently installed a module from CPAN and noticed one of its dependencies was common::sense, a module that offers to enable all the warnings you want, and none that you do

9条回答
  •  孤城傲影
    2021-01-08 00:55

    When it comes to warnings, I support the use of any module or built-in language feature that gives you the level of warnings that helps you make your code as solid and reliable as it can possibly be. An ignored warning is not helpful to anyone.

    But if you're cozy with the standard warnings, stick with it. Coding to a stricter standard is great if you're used to it! I wouldn't recommend switching just for the memory savings. Only switch if the module helps you turn your code around quicker and with more confidence.

提交回复
热议问题