Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114583 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33011 invoked from network); 25 May 2021 12:46:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 May 2021 12:46:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F12231804B5 for ; Tue, 25 May 2021 05:57:38 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 25 May 2021 05:57:38 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id c15so37955857ljr.7 for ; Tue, 25 May 2021 05:57:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+g4HZp6+upawyhebZ4F1EFyXqE2PwpF30CAjTZ0nWTw=; b=TeDNOf+7iUjefhFRfU1bm4Wz36lQsg5K/bHkEO5DVkFy42ZXRs5lx0CGk9F3KGPWfm mMzqiNnUAvrzU+4z8X3ugo7k6NYm9XuKFhorqJIqWdCcCcgBXsYkdgyGehtYnpB4VCMT 5Wj2djUDlzcxSkY0oBzW5K6fG+zm1T/rEmu7SnBfZflChVYMkloTfk1hyiXhGDy3A9hV 0LCRri63Cx4v1IKNdeD5qkDnR9FQ7SlrseUmjUHoOU47l8m/BMJAE0pQCLjEUk/3GbEx Xzy3HxxWgu3YYKD3oVfNbwd5glMKLRjO7nnnzBtWIb655khQCEFHrMB2vEFeCQ5UeT6O uqeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+g4HZp6+upawyhebZ4F1EFyXqE2PwpF30CAjTZ0nWTw=; b=faB8WZ/CcqN5322FLikOMjc4hY8huarRFB0O4n2yrV5JOuf/qpYX/RTASMySHRhaD+ NN0tAOVJgyZUdu6Ymy5pNmkVVK7+vhDajSBGAm2gVfCD2X2aKQqriLa8JCuvGbYGfbiG Z7xGCI0pBVWSew+Ft20KI+3Y/ks8XsU9x0u7/eGOvMpTO+9UjFfiMYt2IFTc1gP67q+H uRvm3Q3ocrb9aLY+8bnlEK4qSRNkkA3o6WHd36Yw+FWXocyJlNepeE4WbGygBMEFzjCi FKf23VKH+kXyjg7kmzIPzP8dGCgnnt2+pOOHLX7nmgkUZGzzT0GPOmX8YaJqLUe2XmdI 8qIQ== X-Gm-Message-State: AOAM533BmW4zEdtaFoB2khpwz1pm3hA2F03OROVY4zwsL3p35FxMFQAe HMDi+7kLsCfNKF8LtYcJb2F0bK3Gw1N2NYajSw== X-Google-Smtp-Source: ABdhPJz29UVb3PS18z2lGYjGBcrNyUaSS5TsEypirHm4dHEs3PoQZfSrIIjA81S+reD9YMk8yqXgC9v21RRdHPNhPeg= X-Received: by 2002:a05:651c:14f:: with SMTP id c15mr20247646ljd.22.1621947455207; Tue, 25 May 2021 05:57:35 -0700 (PDT) MIME-Version: 1.0 References: <54744b98-27de-4562-d243-77d9e5cba7a9@gmx.net> In-Reply-To: <54744b98-27de-4562-d243-77d9e5cba7a9@gmx.net> Date: Tue, 25 May 2021 14:57:26 +0200 Message-ID: To: Andreas Leathley Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000e97c6705c32711aa" Subject: Re: [PHP-DEV] [RFC] First-class callable syntax From: guilliam.xavier@gmail.com (Guilliam Xavier) --000000000000e97c6705c32711aa Content-Type: text/plain; charset="UTF-8" On Fri, May 21, 2021 at 11:09 AM Andreas Leathley wrote: > [...] > > About the bikeshedding: Using "..." as a symbol does make sense to me, > as variadic unpacking/variadic arguments have a similar connotation > (referring to an unknown/arbitrary amount of elements). * was also > suggested (as in "somefunction(*)" instead of "somefunction(...)"), and > I like that too - * in regex is any amount of elements (even zero), and > ? is exactly one placeholder in SQL. As many PHP developers know regex > and SQL this would make PFA code a lot easier to understand even if > someone is not that familiar with it yet. > FWIW: In this context, ? and * remind me of shell wildcards (used by glob() and fnmatch()), which makes sense too. Also, at least one person is opposed to "...". -- Guilliam Xavier --000000000000e97c6705c32711aa--