Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70675 invoked from network); 7 Apr 2008 04:11:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2008 04:11:38 -0000 Authentication-Results: pb1.pair.com header.from=crrodriguez@suse.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=crrodriguez@suse.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain suse.de from 195.135.220.2 cause and error) X-PHP-List-Original-Sender: crrodriguez@suse.de X-Host-Fingerprint: 195.135.220.2 mail.suse.de Linux 2.4/2.6 Received: from [195.135.220.2] ([195.135.220.2:47800] helo=mx1.suse.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/DB-03324-7FE99F74 for ; Mon, 07 Apr 2008 00:11:36 -0400 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id B0E4540493; Mon, 7 Apr 2008 06:11:32 +0200 (CEST) Message-ID: <47F99EEC.8050901@suse.de> Date: Mon, 07 Apr 2008 00:11:24 -0400 User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Felipe Pena Cc: internals@lists.php.net References: <1207539695.5736.42.camel@pena> In-Reply-To: <1207539695.5736.42.camel@pena> X-Enigmail-Version: 0.95.6 OpenPGP: id=85898BD3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig01B00E8892A7AD909428489D" Subject: Re: [PHP-DEV] Return type hints From: crrodriguez@suse.de (=?UTF-8?B?Q3Jpc3RpYW4gUm9kcsOtZ3Vleg==?=) --------------enig01B00E8892A7AD909428489D Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Felipe Pena escribi=C3=B3: > Hello ladies and gentlemen, >=20 > I made a patch that implements an experimental return type hint, > therefore we need discuss much about this yet, right? :) Thanks for raising this issue !! > function (int) foo(...) { } // Accepts numeric string > function (double) foo(...) { } // Accepts numeric string hrmmm.. nope. neither double nor int should accept numeric string.. >=20 >=20 > :: Question --------------------------- > - Add (resource), (unicode), (void) ? | > --------------------------------------- yes !! > :: Question ---------------------------- > - Weird syntax? | > ---------------------------------------- Yes, not intuitive at all... > What must be improved/changed? (All?) Dunno, Have not tested the patch yet, but will :) Thanks. --=20 =E2=80=9CIf debugging is the process of removing bugs, then programming m= ust be=20 the process of putting them in.=E2=80=9D =E2=80=93 Edsger Dijkstra Cristian Rodr=C3=ADguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------enig01B00E8892A7AD909428489D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFH+Z7whbiInYWJi9MRAvOkAKC4dgflE21WOOxMgCvs2rvlNQS2+wCfToB/ KBQ/mVoecjd0K61HSHEmG6g= =/sta -----END PGP SIGNATURE----- --------------enig01B00E8892A7AD909428489D--