Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92654 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3554 invoked from network); 23 Apr 2016 11:18:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Apr 2016 11:18:59 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 209.85.161.173 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 209.85.161.173 mail-yw0-f173.google.com Received: from [209.85.161.173] ([209.85.161.173:33371] helo=mail-yw0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/13-01429-22A5B175 for ; Sat, 23 Apr 2016 07:18:59 -0400 Received: by mail-yw0-f173.google.com with SMTP id t10so147407009ywa.0 for ; Sat, 23 Apr 2016 04:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=2xCnB2EMDX3aDGn4N/Y7MTcj4gjl+N4x9MsPvAwScF0=; b=C7tlWt36j2+TPRo5qcDU4S4gS7lT6SdchrRTSShHvpreNcrBNAfYiQBKvUM6f5x6mi ihz6JA6CvIcbbSXBn2QC1cw7PAqUcLMMOIq0fiyE67vxwWMZPhfYfLgvNUsFmJzSAshk a6b7LD5HaiDIl/LuL4Hn84SkQHSKntpf2cP3OIIY1D8B1KalN2Z5j992wHRW2hCBjs/I Ph4sQ/TsRH2bxRulysecvYpsnjp2yzROII0P20eZUH+O6z0AggRs8FnYhFqBv5EIDdrV 3GXp+IUEaDm8brFnKUqdfvwwJU4EhruKZZqjs7Nu36Ev6hhcaKzv+Ceu4d4jufbxup5N VzJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=2xCnB2EMDX3aDGn4N/Y7MTcj4gjl+N4x9MsPvAwScF0=; b=IXa6O0CUb7yiyiUH6WpciL2dyfzqrTIYeZrk96zJ49g8Njgkg7BX1rWwlc42567DN1 hZKG9Ubg8xVYBhf9AOaeAyEsKyLTv3lLV3vWJRD3LdjgRsgm0OufLSHhhWZ3HLpdj3YN B8iniFoxJGXwhdRt8FRgquyMr/4KoTOxdCgRWHVgLcuJzjb5deRcvQUYP7TegAnHR7Lt euydh82HyQyqT9bEXGbbKDnvQamUkRSIGcRlyWgI2GPr5hmKPUIKO6b0CXptSJPXInSF 6IgiNLD4ZYctyAXoKYnw2bEMfvtrPt1xjXni83lF/sicOX2nW9OfobhIqAmQ2/n9Vr/T W54Q== X-Gm-Message-State: AOPr4FWLUCccxnfir4AHdTIJcQaGg1nuo5b4zz1hyiESnXU1hKYX3LddAKUTJaPsMlW0Aby1INc3UdI7GRlOPQ== MIME-Version: 1.0 X-Received: by 10.129.33.133 with SMTP id h127mr17360348ywh.169.1461410336254; Sat, 23 Apr 2016 04:18:56 -0700 (PDT) Received: by 10.37.89.6 with HTTP; Sat, 23 Apr 2016 04:18:56 -0700 (PDT) X-Originating-IP: [2.99.227.0] In-Reply-To: References: Date: Sat, 23 Apr 2016 12:18:56 +0100 Message-ID: To: Marcio Almada Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV][RFC] Callable Types From: danack@basereality.com (Dan Ackroyd) On 22 April 2016 at 05:12, Marcio Almada wrote: > Hello everyone, > > We just completed the draft for the "Callable Types" RFC. There seems to be one thing missing from the RFC; please could you add an example where the parameter and return types are also 'typed' callables? Presumably it would look something like this? function reduce(int $a, int $b, callable(int, callable(int, int):int $math):int $reducer): callable(int, int):int { return $reducer($a, $b); } Are there any limits to how far down the callable type can be defined ? cheers Dan