Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73782 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34846 invoked from network); 24 Apr 2014 18:15:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2014 18:15:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.169 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.169 mail-ob0-f169.google.com Received: from [209.85.214.169] ([209.85.214.169:64348] helo=mail-ob0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/B2-20919-BA459535 for ; Thu, 24 Apr 2014 14:15:08 -0400 Received: by mail-ob0-f169.google.com with SMTP id uz6so3110880obc.28 for ; Thu, 24 Apr 2014 11:15:04 -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=dfs+uM7ZPNqG2eGI3VXfECEFMIGqWQjE4dk2pLjHa7o=; b=SfMyH3LX0g2ZHm/6PrJCeyH3AtKN2UcDBeDqXRs4fAvXtoIR6lWm4jvnrwzXaYQI4f 50HKCY9VXroKMmE8mjrItQFDYNJ4DH9AFWLaU3rnBzi60viT1VKXnIWHRM7JL7YMOkmc POT7QXauDihQ5S69pABWrbeRFrcmlUamuxbUPxi+30rIwmbvmkPfQ086AIEOruCoEhWi d6C4CM6DFOWQGYrIoqRyuPe/hKqI1STr+zkpdrN626Ie7ZfdW4SkaAqNSYMvsOJglZDn dEErn/R2/DvfHuDkhPeAFBcpKhXZQIdngZBNScGk2gJ0uDHyAz+A19Ob63iGohITijyk 6h4A== MIME-Version: 1.0 X-Received: by 10.182.243.138 with SMTP id wy10mr1869978obc.83.1398363303989; Thu, 24 Apr 2014 11:15:03 -0700 (PDT) Received: by 10.76.77.100 with HTTP; Thu, 24 Apr 2014 11:15:03 -0700 (PDT) In-Reply-To: References: Date: Thu, 24 Apr 2014 12:15:03 -0600 Message-ID: To: Adam Harvey Cc: Daniel Lowrey , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c2a12000818d04f7cdd4cd Subject: Re: [PHP-DEV] Re: Return Type Declarations From: morrison.levi@gmail.com (Levi Morrison) --001a11c2a12000818d04f7cdd4cd Content-Type: text/plain; charset=UTF-8 > > Levi, what's the syntax like for closures with use blocks? I can see > that looking a bit weird either way, since it's presumably either: > > function ($foo): Bar use ($quux) {} > > or: > > function ($foo) use ($quux): Bar {} > > Neither are exactly ideal, but that's the hand we've dealt ourselves, I > guess. I believe it is the latter: function ($foo) use ($quux): Bar {} I'll check with Joe Watkins. Do you have a case for one being superior to the other? --001a11c2a12000818d04f7cdd4cd--