Related
the new E_ANAL error_reporting setting
Published 2005-02-22 10:57:28
After quite a few chats on various php-irc developer channels, it looks like PHP is going to be getting a new error_reporting level, E_ANAL.
while E_STRICT has been quite sucessfull in getting people to migrate from C# and Java, there is a sense that it is not quite complete. Apparently quite a number of them are missing their fatal exceptions on mundane issues). hence the new planned E_ANAL notices will start appearing when
Developers are still open to new ideas for it.
while E_STRICT has been quite sucessfull in getting people to migrate from C# and Java, there is a sense that it is not quite complete. Apparently quite a number of them are missing their fatal exceptions on mundane issues). hence the new planned E_ANAL notices will start appearing when
- you forget to declare a variable type before using it. (just giving it a default value doesnt count)
- you try and do boolean tests on strings, integers, object (or anything that isnt a boolean)
- string comparison on non-strings (although I'm tempted to suggest this for E_STRICT)
- you declare a function (that's not part of a class)
- you forget to put the return type of a method.
- you forget to wrap a method call that can throw an exception in a try{ } catch block.
- you make any property public (only available with the E_ANAL_JAVA extension).
- any usage of PHP native array's or array functions.
- any method call that does not involve at least 3 objects.
- using any variable name that matches a object or method name anywhere in the imported methods or functions.
Developers are still open to new ideas for it.
yes - it's a joke :)
Having a point - after all
While I usually overlook your rants about $RANDOM, I quite feel the same regarding this issue (if I didn't misunderstand the joke) :)
I thought about out-sed-ing E_STRICT errors from php-src... ;)
While I usually overlook your rants about $RANDOM, I quite feel the same regarding this issue (if I didn't misunderstand the joke) :)
I thought about out-sed-ing E_STRICT errors from php-src... ;)
Thats Java
It is not a Joke its JEE (Java Enterprice Edition)
>ny method call that does not involve at least 3 objects.
Thats the reality in Enterprice Java Developent.
The non-existence of E_ANAL is the reason, wy we use PHP and not JEE
It is not a Joke its JEE (Java Enterprice Edition)
>ny method call that does not involve at least 3 objects.
Thats the reality in Enterprice Java Developent.
The non-existence of E_ANAL is the reason, wy we use PHP and not JEE
took some time
Very nice! I have to admit that I made it half through list before noticing that's a joke.
Very nice! I have to admit that I made it half through list before noticing that's a joke.
Gado-gado
Actually it'd be nice if PHP would allow more "strong typing", just like the type hinting already available in PHP5, but just allow it for more uses, including class variables, and return values are good too.
Omitting the type would mean "mixed", which will be the same as current PHP behavior. But users wanting to have strong typing would be happy to have this feature.
BTW typing is not a Java thing. I came from Pascal and C, C++, they all use types. The fact that PHP was only a preprocessor and now a full-fledged programming language with broader uses, such as PHP-Gtk, makes this is actually "necessary".
And no, this isn't a joke. (and if anybody listens)
Actually it'd be nice if PHP would allow more "strong typing", just like the type hinting already available in PHP5, but just allow it for more uses, including class variables, and return values are good too.
Omitting the type would mean "mixed", which will be the same as current PHP behavior. But users wanting to have strong typing would be happy to have this feature.
BTW typing is not a Java thing. I came from Pascal and C, C++, they all use types. The fact that PHP was only a preprocessor and now a full-fledged programming language with broader uses, such as PHP-Gtk, makes this is actually "necessary".
And no, this isn't a joke. (and if anybody listens)
Add a comment (requires javascript!)
Follow us
-
- Migrating off Netsuite - The hidden cost of Clouds..
- Javascript Templating, AngularJS and Roo.XTemplate
- Roo.XComponent introduction
- Roo J Solutions Limited is recruiting
- Free your data... seed webkit browser mirror button
- Deleting the View and Controller..
- What was I doing last night... Seed querying xscreensaver
- Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.
Blog Latest
-
Twitter - @Roojs

Comments