[wp-hackers] Why WP_Error Sucks

Almog Baku almog.baku at gmail.com
Tue Jul 24 15:10:44 UTC 2012


According to the official requirements wordpress require php5.2.4(if
you ask me it really great time to upgrade this require to 5.3/5.4 for
the new release of wordpress ver. 3.6).

So- By this argument.. I totally agree. I think exceptions will be much better.


On Tue, Jul 24, 2012 at 5:58 PM, Michael D Adams <mda at blogwaffe.com> wrote:
> On Tue, Jul 24, 2012 at 5:56 AM, Ryan McCue <lists at rotorised.com> wrote:
>> I'd be interested to hear your thoughts on WP_Error and the possibility
>> of using exceptions as well. I'd also love to hear from anyone who has
>> implemented exceptions in their own plugin code.
>
> Joel Spolsky's opinion:
> http://www.joelonsoftware.com/items/2003/10/13.html (Exceptions are
> worse than GOTOs)
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list