Remove side-effects

PSR-1 says

A file SHOULD declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it SHOULD execute logic with side effects, but SHOULD NOT do both.

We have class files and files full of functions with side-effects It would be the first step towards class autoloading.


Read-only archive: https://petitions.classicpress.net/posts/182/remove-side-effects

Author: Viktor Szépe

Vote count: 5

Status: open


Comments