Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119412 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37767 invoked from network); 24 Jan 2023 10:29:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jan 2023 10:29:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 252E41804F7 for ; Tue, 24 Jan 2023 02:29:41 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 24 Jan 2023 02:29:40 -0800 (PST) Received: by mail-ed1-f42.google.com with SMTP id v10so17732800edi.8 for ; Tue, 24 Jan 2023 02:29:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=djzdLRX8k/Hhsi6JPxM/j07fuNGCr1dNyNZnVScOtic=; b=GyV3K62IydUMfxWuceclap1efxJsrMeSz+EX4zslMHfJ/PWnkYrvLDBH7MqqMW4Bg4 LSLR6CUmGrPRgJLr5dCvQzK3RcT2OhMlB72Qe7J/+OHqWyiYSGcQePLS48UbifUW9L1S Ql6x3tiIDxrOVVTl6NS3SUjspDKU7xP/EQlmMyKJzkSE+1T0H77QDdgPFcwJF1wcC4v1 m5NO44pz+JxFYRzGyLtWWtj02I3GR3Aygxm26JZsB4GT2fybJ0FdzcHEfE2Ld4Aau5yB vnlBjk+mvYHv7ak2+/awcSWBJ8DQ7uJdmqGOeFzYUS+96uXc1VGO5vGPy8jk3gAYt8CS HnpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=djzdLRX8k/Hhsi6JPxM/j07fuNGCr1dNyNZnVScOtic=; b=eNTDOWeUtttqwz8IIgbk2bXVv5WLMXk/MVXMCCm59K5+zsp+jUfhOOkJN1v92MmWeF QOKZfN+l8GNRwwVThUKQqKlwQDLo1SxSmOvnUy7zP393i6tEFn8mz3oxi7LfPLFD4y+c V8WNbj8CwyZeN8GzKHviI6dW9WTaDtCk4TbfWCTTpddI/7eWEqIZAh0/eZwQ4yaD8ivR r1fqpU8jQ21Mp0/psF1OJql7+STXHT7aDdj2eY/ZLZFr6h7tt5VKlo9wD1oZBr3r1pK3 GXr6a5AC9XgmYq3MweAXouOHnapBTV/c3Yv8ZvOhJbQN1WB3t87v+PiiFW+A9b4E5b4/ TEkQ== X-Gm-Message-State: AFqh2ko8QwfnfYII/ZRY0d1fj3m2Eh+k2MeFZ97iP/3ehKnNmCxY7n+g zrPF7sDer4IYfdKfW8oG1EXCDLpgGqhPDGTboXOZ9GerBS3w7s6x X-Google-Smtp-Source: AMrXdXtqFM4eC10K3TVY94bStqNHv9qMmHXm2AMcqsizFO6+O6q/gBrdTiZPQSlvR5tHcox0epTcNVKh1cAedWWAM7Q= X-Received: by 2002:a05:6402:cb4:b0:495:9648:c326 with SMTP id cn20-20020a0564020cb400b004959648c326mr3772862edb.46.1674556179429; Tue, 24 Jan 2023 02:29:39 -0800 (PST) MIME-Version: 1.0 References: <8f530a4a-bf48-4259-877e-16ebf8082936@app.fastmail.com> <9c97b0b1-e17e-4eec-8cf5-fad86aca2da6@app.fastmail.com> In-Reply-To: Date: Tue, 24 Jan 2023 10:29:28 +0000 Message-ID: To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Introduce the abiltiy to use the first-call-callable syntax on non-static methods, statically From: Danack@basereality.com (Dan Ackroyd) On Mon, 23 Jan 2023 at 23:03, Larry Garfield wrote: > > So you're saying that would generate a callable equivalent to: > > $fnMethod = fn (Zok $zok, string $zebranky): Frungy => $zok->Pik($zebranky); Yes. > (We're also now rather far afield from the OP's request, I think.) Well, yeah. Deliberately so. Starting a discussion with a solution prevents people discussing and agreeing on what the actual problems to be solved are, and fixates on a single, in this case 'not great', solution. As I said, I think people should say clearly what the problem they are trying to solve first, before suggesting solutions. > I'd probably push for something more compact as a syntax Quite. Indeed. Yes. Danack wrote: > > Well, other than to use a different syntax. > > https://news-web.php.net/php.internals/114542 $(Zoq, Pik); cheers Dan Ack