Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51560 invoked from network); 25 Jun 2013 16:15:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2013 16:15:08 -0000 Authentication-Results: pb1.pair.com header.from=inefedor@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=inefedor@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: inefedor@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:58759] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/C4-49518-A02C9C15 for ; Tue, 25 Jun 2013 12:15:06 -0400 Received: by mail-la0-f52.google.com with SMTP id fo12so12417357lab.39 for ; Tue, 25 Jun 2013 09:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:to:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=J0X1C7sJBLVaOlQbsWQF4M6Z8stU4UZOM0gF7KtWawE=; b=xsZEIupNsOefGTk4qux4reYfKOqqbuNGcYUTNWCwcQ+jqElo7iKfufSvbwtIGjZX/P Cj0mwil6yX9y4vvQqTjSP6mJhMgtAbu5/oW3jNFiCjyK/r7YqvnEMov+eM0qtDsGaZ1A xdt8pz7JJA6DTXiVIz4ouClOcSE3cnzVd/BhrmdIsy59KmNENyJOVM9/lGtBts1ozkZB j4sxOiByhRET9MnQyKPpmz58OEKWuQ59vpZAx0pb7Wx6Ui6b8iJ3ijvBXbpOnjEbwQ6K 3HaKBgdPtZe/v2mvfb5WmDn26brFgQ4xyhKzeC8wUHY9oaNmrUgbQZ8ldqmNgtpahsz/ uDZQ== X-Received: by 10.112.11.162 with SMTP id r2mr244264lbb.41.1372176903302; Tue, 25 Jun 2013 09:15:03 -0700 (PDT) Received: from nikita2206-n56vj (95-24-146-245.broadband.corbina.ru. [95.24.146.245]) by mx.google.com with ESMTPSA id n3sm9221590lag.9.2013.06.25.09.15.02 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 25 Jun 2013 09:15:02 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "internals@lists.php.net" , "Anthony Ferrara" References: Date: Tue, 25 Jun 2013 20:15:01 +0400 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/12.15 (Linux) Subject: Re: [PHP-DEV] RFC: Protocol Type Hinting From: inefedor@gmail.com ("Nikita Nefedov") On Tue, 25 Jun 2013 19:57:15 +0400, Anthony Ferrara wrote: > Hey all, > > I want to throw out this draft RFC to get the concept floating around and > get feedback early. > > https://wiki.php.net/rfc/protocol_type_hinting > > There are still open questions, and a more complete (and cleaner) > implementation will be needed before officially proposing it, but I > wanted > to get the concept out as soon as possible. > > What do you think? > > Thanks! > > Anthony Hey, That's great, just great, I have no more words :3 By looking at the diff I see it will only work for type-hints in functions/methods. Could we also see something like "$var instanceof "? I fear it can't be done this way because of parser limitations, but I believe this feature would be as useful as type-hinting in functions. And again, that's great :)