Hi.
I'm a C# programmer by nature so I'm kind of used to using Exceptions and I'm currently working on a PHP project that I've written in a .Net style, using Exceptions ,objects and naming styles like I would in C#.
None of the original PHP functions or objects use the Exception system. They are written to return error codes or boolean values rather then throw exceptions.
This is obviously the 'default' way of coding PHP, and I doubt many people use the Exception system, except 'C like' coders like myself, which would create problems if someone other than myself were to use my code.
I'm just wandering what you guys think.
Does anybody use Exceptions other than me? Should I just give it a rest and try to follow the PHP way of doing things?
And more importantly; is there any clear advantage/disadvantage of using Exceptions that you know of?
I'm a C# programmer by nature so I'm kind of used to using Exceptions and I'm currently working on a PHP project that I've written in a .Net style, using Exceptions ,objects and naming styles like I would in C#.
None of the original PHP functions or objects use the Exception system. They are written to return error codes or boolean values rather then throw exceptions.
This is obviously the 'default' way of coding PHP, and I doubt many people use the Exception system, except 'C like' coders like myself, which would create problems if someone other than myself were to use my code.
I'm just wandering what you guys think.
Does anybody use Exceptions other than me? Should I just give it a rest and try to follow the PHP way of doing things?
And more importantly; is there any clear advantage/disadvantage of using Exceptions that you know of?
Comment