Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36843 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59215 invoked from network); 7 Apr 2008 13:36:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2008 13:36:50 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.142.187 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.142.187 ti-out-0910.google.com Received: from [209.85.142.187] ([209.85.142.187:49281] helo=ti-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/D1-50465-1732AF74 for ; Mon, 07 Apr 2008 09:36:50 -0400 Received: by ti-out-0910.google.com with SMTP id a21so399008tia.17 for ; Mon, 07 Apr 2008 06:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=Kxb/bNbuNkhJtdtPOij4tKbjGqwP5229mJsmgT9YBJw=; b=LyWE96rEBaix6ZR3ySgU1X/ptxd+Ixi8fpppCFUHn6f5VM6k2Q+n3U1JIE24GKUxw8pCZuICI0ds3d/0Q9xYTWclqCNxnk4qeuATCJqRNxCViPjRx2oX4Dj7PkbMCHIQ7qpaAhpJvfjcBuxeD36RgyIapXGnazZN2skOUnUJbBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=FXGaXjTDWuJ8LmCF9kZt1fcdpQm54zJhVNmlgJjR1VR+EJHTYtAraCe/BZmzugOTVL1/OjdIlMXfw4LrC3mGAiQDreyO8+H3GEtTo7/aiI50TqhoXMueqeKrCrQDLWJELY3WgR2m7nQlBcnNvfQe+AFsNcd+SNLChNsF/jhL5Jw= Received: by 10.151.109.11 with SMTP id l11mr2718113ybm.171.1207575404749; Mon, 07 Apr 2008 06:36:44 -0700 (PDT) Received: from ?10.0.18.8? ( [157.86.206.62]) by mx.google.com with ESMTPS id p60sm2069641hsa.18.2008.04.07.06.36.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Apr 2008 06:36:43 -0700 (PDT) To: Jarismar Chaves da Silva Cc: troels knak-nielsen , internals@lists.php.net In-Reply-To: <47FA1E54.8050104@adplabs.com.br> References: <1207539695.5736.42.camel@pena> <20080407013257.idn4b6sfwkc40c4c@zesix.com> <1207571296.5331.23.camel@felipe> <98b8086f0804070606v59c4c849vedbe52a7797288d1@mail.gmail.com> <47FA1E54.8050104@adplabs.com.br> Content-Type: text/plain; charset=utf-8 Date: Mon, 07 Apr 2008 10:36:39 -0300 Message-ID: <1207575399.5331.39.camel@felipe> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Return type hints From: felipensp@gmail.com (Felipe Pena) Hello, Em Seg, 2008-04-07 às 10:15 -0300, Jarismar Chaves da Silva escreveu: > Or something like this would be nice too, please avoid using + > or (). > > class test { > public static Itest function testing($instance) { > return $instance; > } > } > > troels knak-nielsen wrote: > > On Mon, Apr 7, 2008 at 2:28 PM, Felipe Pena wrote: > > > > > class test { > > > static public function +Itest testing($instance) { > > > return $instance; > > > } > > > } > > > > > > > A more sane syntax, might be something like: > > > > class test { > > static function testing($instance) : Itest { > > return $instance; > > } > > } > > > > -- > > troels > > > > > -- > Jarismar Chaves da Silva As i said previously: > I really tried avoid this. > This is the reason for two notations. Actually 'integer', 'double', 'string', etc are allowed in function, class and interface names. Using only 1 notation, we would have that make them keywords. -- Regards, Felipe Pena.