Hi together,

Am 14.03.2015 um 14:37 schrieb Peter van Fessem:
>> If a dev turns a file that he or she wrote into strict mode, then that
>> only counts for that specific file. If you take over some code, then you
>> can remove the declare line. *none* of those things you'd be able to do
>> with ini settings. So don't shout out that nonsense FUD.
> 
> It's equivalent to an ini setting in that it changes the behavior of the
> code based on something that is declared elsewhere. Obviously a declare
> statement in the top of the file is a lot better than an ini setting,
> but I think the principle is the same.

that is simply not true. The principle is not the same. The principle is
roughly the same as with namespaces. If you are unsure, got to the top
of the file, finished. Ini-Settings are runtime-dependent so there is no
way to find out what the ini-setting will be beforehand.

I think nobody will argue that namespaces are to complicated because you
can define the current namespace at the top of a file which than changes
the behavior of the file completely (which it does, somehow, by the way).

Greets
Dennis

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to