Return value on half failure
| From: | Christian Weiske | Date: | Sat, 14 Jan 2006 22:08:49 +0000 |
| Subject: | Return value on half failure | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-2208@lists.php.net to get a copy of this message | ||
Andrei (and others with a voice),
What return value should methods have that have a "half" failure, e.g.
gdk_event_get_coords? It returns true and fills two double variables in
case the event had some coords associated, and returns false if there
were no coords for the event.
PyGtk returns an empty array in the latter case, but it would be more
php-ish to return FALSE instead of an array. On the other side it's no
"real" error.
I still vote for returning false, but want to hear your opinion.
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc