Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98148 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94547 invoked from network); 3 Feb 2017 22:22:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2017 22:22:47 -0000 Authentication-Results: pb1.pair.com header.from=tendoaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tendoaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.68 as permitted sender) X-PHP-List-Original-Sender: tendoaki@gmail.com X-Host-Fingerprint: 209.85.213.68 mail-vk0-f68.google.com Received: from [209.85.213.68] ([209.85.213.68:35932] helo=mail-vk0-f68.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FB/F7-38491-6B205985 for ; Fri, 03 Feb 2017 17:22:47 -0500 Received: by mail-vk0-f68.google.com with SMTP id n19so2609949vkd.3 for ; Fri, 03 Feb 2017 14:22:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QFM+WkoXNT93+PMNr5YRk43+u/G6obVkNdT4O8et6BY=; b=leuqxQ4VHCxScwv4lCZ52ICheGxC37i4Zo5L57j1ItO6SItnvENVcMYhQoNW+uSNWW 5zu7/FInRM2xtxEu6HSJ7/7obxGIX5gnnkazgdUs9Gg7hBN5NA03Zo9wTCEPsb+nQTu8 P+4XiQK2Elzk0U3NHadJ2nsn5RUbVFoDFID/SOnzeFG2QiOkIa1XjtqC0QsgZbz3XktG Jwq3zke9dFTPqVtHH7VevYtRrqnKDodnpzSQmbzRdF8m+7GRRs7qg2Cs5hbX/XTIour0 X5ZP3L8jtkPFJubC6QykC7e32E2DAd8L93mX93ZgRwwYbxUaCpQ20yYV1NmXWqpClyy7 QFpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QFM+WkoXNT93+PMNr5YRk43+u/G6obVkNdT4O8et6BY=; b=WOPrSiUuTa4scKXaeQYo806QcaWJEGHyBdkI3qzUbNDXlzFk0BZOwbUxF0UttzU6GY P97t/w38z4Y2o3Rij6HTWN0n+dd0vjBCxHBJD06qg3tgpvlcHRREPbICaJBeGUPQokWT bFNu7WTuO7L9w7BUmI7uvm0s2ZVXMC4SY7Fi8KrLn0ie2JuNC7fTCRNQixInU64gClFF vcUVxlwb5BFYxVdWHR+kzB6rnhH1bktncPGZUsQkuM5ptp1JJDLO6PPBW32jBEyeWOIs i5c7XYSWMunHPS+8kbzBswYqW1YDn2dGmK/TRDn6fUCh1im0Y07J8krBv0JtjO2+diAT kbUg== X-Gm-Message-State: AIkVDXJVaKhYNDLFkbhAXArtAi5Is/KilTnbRCaGp+mjy/BwOLtk1qf0EcmMab2RWjGj1lAg2Dw5LLrv+8rqZg== X-Received: by 10.31.242.11 with SMTP id q11mr8179134vkh.54.1486160564133; Fri, 03 Feb 2017 14:22:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.35.15 with HTTP; Fri, 3 Feb 2017 14:22:43 -0800 (PST) In-Reply-To: <611b72db-420f-4963-ab92-0ddf977a0aaa@Spark> References: <19.45.38491.677D4985@pb1.pair.com> <611b72db-420f-4963-ab92-0ddf977a0aaa@Spark> Date: Fri, 3 Feb 2017 17:22:43 -0500 Message-ID: To: ilija.tovilo@me.com Cc: Andrea Faulds , Levi Morrison , internals Content-Type: multipart/alternative; boundary=94eb2c14c2688126790547a7b83c Subject: Re: [PHP-DEV] Re: [RFC][Discuss] Arrow Functions From: tendoaki@gmail.com (Michael Morris) --94eb2c14c2688126790547a7b83c Content-Type: text/plain; charset=UTF-8 On Fri, Feb 3, 2017 at 3:34 PM, wrote: > I like the suggested syntax. The only drawback I see is that it inhibits > the future addition of union types for closures: > > |int | float $x| => $x > > Adding parentheses of course resolves the issue but looks a bit awkward: > > |(int | float) $x| => $x > > Apart from that I have nothing to complain about. I'd be happy either way. > Good point, but union types are going to come up in this context I think. Remember, these are for one line functions, which highly limits what they can do. > > --94eb2c14c2688126790547a7b83c--