Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67893 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69406 invoked from network); 26 Jun 2013 16:24:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2013 16:24:28 -0000 Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:35503] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/98-29746-BB51BC15 for ; Wed, 26 Jun 2013 12:24:27 -0400 Received: by mail-vb0-f42.google.com with SMTP id i3so10937916vbh.1 for ; Wed, 26 Jun 2013 09:24:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=O7RHfi5QfFfRBj2OVvNi79z+aDTVionh39Zzuu5uFdg=; b=PuwSXCSZd+Y/18n/uGNy4boRlEXiJbEeYvQinFLpw8L74tUPCCPRnql5hV2nVd1hiD Or5PkO2lORPSZTU3xCzXz46oxjWc+eU1mtrOmPwGt6KJivrvVjfJZoxcfK2m9S0rSqTo VgPsBWC8bkVNPjlN7ZeXjsSQVnYY7dLrPgwdE5HBgo3OuBgD5dk/6Ga512trBTqZb7fv /8IRYNBrDrDm/bd2WJ5F9WURe07THuqvSfM0ytHTT7/Si4Zz72nKeRYlEwBga0E1o86K DRCljVJOQRWSyMsQ9IsuHsDxZHEJgw2ZpvcuA/RQqWW163KNWv65Fh9qH0UmIr8Qj7F/ IHYA== MIME-Version: 1.0 X-Received: by 10.221.49.134 with SMTP id va6mr2024780vcb.14.1372263863456; Wed, 26 Jun 2013 09:24:23 -0700 (PDT) Received: by 10.58.94.201 with HTTP; Wed, 26 Jun 2013 09:24:23 -0700 (PDT) In-Reply-To: References: <51C9FA9C.8050403@sugarcrm.com> <51CA1C93.6080500@sugarcrm.com> <51CA24C5.9090505@sugarcrm.com> <007601ce727c$d32e9680$798bc380$@tutteli.ch> Date: Wed, 26 Jun 2013 12:24:23 -0400 Message-ID: To: Robert Stoll Cc: Stas Malyshev , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11339eda1e98ba04e0111458 Subject: Re: [PHP-DEV] RFC: Protocol Type Hinting From: ircmaxell@gmail.com (Anthony Ferrara) --001a11339eda1e98ba04e0111458 Content-Type: text/plain; charset=ISO-8859-1 All, I've updated the RFC, renaming "Protocol Type Hinting" to "Structural Type Hinting" (keeping the name of the file for historical reasons). I've also expanded out the use-cases with a dedicated section and two examples (middlewares and third-party specified "standard" interfaces)... Thoughts? Anthony On Wed, Jun 26, 2013 at 11:03 AM, Anthony Ferrara wrote: > Robert, > > > On Wed, Jun 26, 2013 at 10:52 AM, Robert Stoll wrote: > >> I had a quick look at GO and as far as I understand they do not use duck >> typing but a structural type system. >> http://golang.org/doc/faq#implements_interface >> >> Please change this in your RFC to avoid misunderstandings. > > > Great idea. I'll update the RFC and code to call it "structural typing" > instead of protocol. A much better term... > > Thanks! > --001a11339eda1e98ba04e0111458--