Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114168 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62522 invoked from network); 25 Apr 2021 21:31:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Apr 2021 21:31:06 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CE1301804B5 for ; Sun, 25 Apr 2021 14:34:58 -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,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-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.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 ; Sun, 25 Apr 2021 14:34:58 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id y2so60259792ybq.13 for ; Sun, 25 Apr 2021 14:34:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ET6x4Y8Ut6gJd2+y9hZq9QURfv9YgLg6vBv6SXPGlms=; b=Cn8rvetJXHlBJ2Jjr76bvWCyQ6vJR55VMDCJyZBqhfRAk5v20alczo2QS2O+FfD+Nf yI06aVee9kW4wXStkj+Lj2UJwmMVH6WC0lYC2WiXL3VWaqX+iYREagEOACFF4CvslRGj xB0V795A7oeQoCOg0kH5xenKFqa8ojVnUEbPE= 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=ET6x4Y8Ut6gJd2+y9hZq9QURfv9YgLg6vBv6SXPGlms=; b=eISB2RP2ybK4mnp2rdvSAZcPZyhzEagTCBMuCp+CB96zYiahIErwkltumJiqfG+Zdk Ym8u/5fkIpMcaVlYbgWBGsFjMGZUir9TqhrJGnA6JeAlYGzQ9uOG3YHRgMHveABz5NJM lA01Itd2qYdR+ALG1MmcbwJwjsC7sVP7OTlbA4Zxc7pI4N62fs21E28qEc870tiVNU83 DYJ/Uo0CbF9rAX37dPxvHrY5U4OjiK0dEH4AzRhUXRKg9awTjSBtF7SUe5zclNlczV/J z1S3JucG6OqXLHTAq2xXAdSRmGN4hFe1xe8nK6EBkw7HxNr3dwBoPh+juRa5zt/51s2w fdJQ== X-Gm-Message-State: AOAM532qLD/Kds0r/InBxdkjsJGFUG9rKe6Rk8d3u2Id/zFVoibwt25T BciVMJgfNtjIKGci5qx3WX9kGYGWJXm9vWADP1conKOhMLE= X-Google-Smtp-Source: ABdhPJxRr++TMR61cmaSCjxX79aIBJiR9M5NzIZvzg0eE+O7uhSzlvp5ixz+Ncv8DzJrcrlgWmCH7MTzTVyXDfdQDF4= X-Received: by 2002:a25:d650:: with SMTP id n77mr146183ybg.133.1619386496974; Sun, 25 Apr 2021 14:34:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Sun, 25 Apr 2021 15:34:46 -0600 Message-ID: To: Max Semenik Cc: =?UTF-8?Q?Olle_H=C3=A4rstedt?= , Larry Garfield , php internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] Partial function application From: internals@lists.php.net ("Levi Morrison via internals") On Sun, Apr 25, 2021 at 3:08 PM Max Semenik wrote: > > On Sun, Apr 25, 2021 at 10:26 PM Larry Garfield > wrote: > > > https://wiki.php.net/rfc/partial_function_application > > > Amazing, I've wanted this for so long! Have you considered extending this > syntax to OOP, e.g. $obj->method(?) or SomeClass::staticMethod(?)? It works for methods as well, as stated in the proposal section. I think there aren't any examples in the RFC just because functions make for shorter examples ^_^ but we should add some to help make that clear.