Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52026 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7295 invoked from network); 27 Apr 2011 10:02:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2011 10:02:31 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:41501] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8E/60-04612-5B9E7BD4 for ; Wed, 27 Apr 2011 06:02:30 -0400 Received: by vxb40 with SMTP id 40so1269742vxb.29 for ; Wed, 27 Apr 2011 03:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=GMwS9e4QhrXN1Sz7whiwGucM73QPYp3ZeChU2/6nvaE=; b=DYoClC4eH90QYTB/5qH1z4TOcf3Vtq4cjERl4Zb6FT9Jd6CGKux3bKmMHQz8FomSAq HI5f6mXwEtbZ+C95B2g/ieTmzfzghhn1CKity4wEG8KJKot3Z1MiyGEl9VmtIimFVqf6 twppIm+0yKPXH3bJPEDr/TjVIlCuwf1oSrAxo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=tYF91mbFlTlRylo4avhBKt7sKcdhAUh5kjr7M5VqzAoQzEP4HUY60SufzMd5/yJtFp RTyH0TE85MdG+O1rXFGyotw+efDgZ7XTRUoQVgJI4TS/i0nDF2tooJUqy1Oq0xx/KUUN zYJJ1IrOA7IwCAYVU4gTbFsdhPYplk9bGtOXQ= MIME-Version: 1.0 Received: by 10.52.90.73 with SMTP id bu9mr2719082vdb.92.1303898547146; Wed, 27 Apr 2011 03:02:27 -0700 (PDT) Received: by 10.52.168.170 with HTTP; Wed, 27 Apr 2011 03:02:27 -0700 (PDT) Received: by 10.52.168.170 with HTTP; Wed, 27 Apr 2011 03:02:27 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Apr 2011 13:02:27 +0300 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf307f354cb9ced204a1e3897d Subject: Re: [PHP-DEV] [RFC] Return type-hint From: arvids.godjuks@gmail.com (Arvids Godjuks) --20cf307f354cb9ced204a1e3897d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable There was no consensus on that, but as i remember the tendency was more to the weak type hinting because of dynamic nature of PHP. You know - all the http data comes as strings, most db data comes as strings and so on. 27.04.2011 11:30 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0= =B5=D0=BB=D1=8C "Pas" =D0=BD=D0=B0=D0=BF=D0=B8=D1=81= =D0=B0=D0=BB: > On Wed, Apr 27, 2011 at 09:23, Ferenc Kovacs wrote: >> On Thu, Jul 29, 2010 at 3:49 AM, Felipe Pena wrote= : >> >>> Hi all, >>> I've updated the patch and the RFC that proposes the return type-hint >>> implementation (Engine + Reflection). >>> The proposed implementation is working just like the last changes in th= e >>> parameter type-hint (in trunk). i.e. working with the "scalar" and >>> "numeric" >>> pseudo-types. >>> >>> http://wiki.php.net/rfc/returntypehint >>> >>> Thoughts? >>> >>> -- >>> Regards, >>> Felipe Pena >>> >> >> for the upcoming 5.4 release, I think it would be extremely useful, even >> without the scalar stuff. >> >> Tyrael >> > > > Hi, > > Now that someone else necromanced this thread back to life, may I ask > which variant of Type Hinting have emerged from the debate as the > candidate for implementation? > > Also, I seem to remember a variant with both strict and weak type > hinting/checking, using parentheses to distinguish behavior. What > happened to that, never made it to an RFC? > > -- > Pas > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --20cf307f354cb9ced204a1e3897d--