Re: Return value on half failure

From: Date: Sun, 22 Jan 2006 19:06:22 +0000
Subject: Re: Return value on half failure
References: 1 2 3 4 5  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2252@lists.php.net to get a copy of this message
Returning FALSE on failure is a PHPish style thing to do. Returning an empty array is far less common. -Jeremy On 1/22/06, Anant Narayanan <anant@kix.in> wrote: > > Jeremy, > > > does (unless it does differently than what you say). It's one less point > of > > confusion for someone already familiar with GTK (forget someone who is > used > > Like Steph already pointed out previously in the list, people who are > familiar with Gtk will rarely find any reason to use PHP-Gtk2 instead. > I support that point, and majority of the users are expected to be > familiar in PHP, not Gtk. > > IMO, we must implement all methods etc. in a PHPish style as far as > possible, not try and imitate the native C api of Gtk. > > Regards, > -- > Anant Narayanan > ------------------------- > Find Freedom! > http://www.kix.in/ > -- --------------------------- Jeremy Johnstone http://www.jeremyjohnstone.com jsjohnst@php.net

« previous php.gtk.dev (#2252) next »