LWN.net Logo

Hmm...

Hmm...

Posted Dec 19, 2011 12:15 UTC (Mon) by alankila (subscriber, #47141)
In reply to: Hmm... by khim
Parent article: Cracks in the Foundation (PHP Advent)

In general it's acceptable to return different types, I guess, as long as it is driven by some kind of compelling necessity or resulting convenience. This FALSE is just not convenient because of the confusion with 0; I think it just shows remarkably poor taste. When designing an API, the designer should take full responsibility about the anguish the API's hapless user must endure.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds