Re: Declare minimum PHP version required?
| From: | Lester Caine | Date: | Wed, 05 Feb 2014 10:03:40 +0000 |
| Subject: | Re: Declare minimum PHP version required? | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72254@lists.php.net to get a copy of this message | ||
Yasuo Ohgaki wrote:
Yes. New assert() is as efficient as declare(). I cannot wait to use new assert()!Yasuo Please can you explain why you think this is so essential? The only place I can think that I would use this I ALSO need to advise the users that there is a problem. Adding 'assert' which apparently only has use while debugging just seems wrong. Alright I add vd() and similar myself when debugging code rather than using a 'debugger', but if I need to test something only at debug time then I'll just add code and remove it when I have sorted the problem. If it is a problem which will stop the code running, then it needs a proper response in the workflow anyway. ADOdb and smarty both have switches to enable debugging which can be switched on as required at runtime and I can't see any reason they would switch to using assert instead? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk