Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108497 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95110 invoked from network); 11 Feb 2020 21:07:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Feb 2020 21:07:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D4232180543 for ; Tue, 11 Feb 2020 11:21:04 -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.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, SUBJ_ALL_CAPS 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-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) (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, 11 Feb 2020 11:21:04 -0800 (PST) Received: by mail-ua1-f41.google.com with SMTP id l6so4386759uap.13 for ; Tue, 11 Feb 2020 11:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g9+c/KVQSJ4TE4Bj/ZGY5ullU7TfzMyY+CcYONFPSZs=; b=x+NGsFP4kKj7nuZpZivqdspnZvnm0rQVbr1PfOyj9Qu278ZvF/6Eywf122587AOR+v M66k2cyFknJ1Iu12wJDGBbzw8V6lCIEPTpnl2c98bUUFaBWuVk5yGT8Oc8uG3NbDp0tv GWCKZHTFRoxxJ72rWtjMx0+V/FBun+yk+HrFosJ5tcz8qRXSbCvwlto1hvwIWGUeU2t/ OAd0sTaZCnfHrTlBR+SITE4c9Dx3jIirjQWCACjSFXKss7KI1osYzPMGXbot7nVXvSIV ZdnRpGaayklSAv+197P88Yk7lmahSjOElfebapX73Oj9EqHNcqdBI//CT0JY+X4+0G35 6ePQ== 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=g9+c/KVQSJ4TE4Bj/ZGY5ullU7TfzMyY+CcYONFPSZs=; b=WPB6U7HEwAOoeopl7socfnATkRBbtGbPK2wG/Ap9Uj4g3sLSeGuXd22SQ/mhEMJgEw STED8ySlMs5oCB10sEw+z8cd2u1KFEnfitk3y+FSH9aMkYJt1QEgO/YYH4lgFe4/ISB7 p6KkTdeMLdJxddYTbWLWgShjpNp0hJPr01c3dy0OG4nYeZ0ZC6P+Jfn8kO0AhVDaJQOD kmOmvYt9tkFq9u15viOBtOdaaN1NLiTGQbD9rzjccMokJKcF+nXtqO7HbT3TexDQFA4f 2/3pGwTBr9ZU5rnnBoeRW5TF5fMtQbTOVQXZKSeqKEE6zea+0wGfwCuxLf8MysjpC7in z1FQ== X-Gm-Message-State: APjAAAX6m4hnLIgiQQR102PDZvLVY0+V5P2qyR2eIW37jK/gg+HrhRQP t3QeCf9p739CMvdYNpx+Ztyxk8UWLORFS3c8Tl3BjA9sfEN8tw== X-Google-Smtp-Source: APXvYqzFOaTeWdQ6BcecWfYMHJFhJJQfPn1ISbM9YdwCoxmXTiFbRxgUyVnIFumEUDIbbIlXdDHmgqFEseqzH3Bwy9g= X-Received: by 2002:a9f:23ca:: with SMTP id 68mr2472138uao.128.1581448861874; Tue, 11 Feb 2020 11:21:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 11 Feb 2020 19:20:50 +0000 Message-ID: To: Dik Takken Cc: PHP internals , Larry Garfield Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] From: Danack@basereality.com (Dan Ackroyd) On Tue, 11 Feb 2020 at 19:08, Dik Takken wrote: > $($obj->Fot); > However, wrapped inside $(), which only accepts > functions and methods I don't think I meant that. I think it still should accept variables as well, so it would still be ambiguous as to whether it referred to the value of the property Fot of object $obj, or the method Fot on the $obj class. Also, just in general using something that has the same syntax as current PHP code, but a different meaning, sounds like a bad idea. > another possibility could be: closure(foo); That has the downside of exposing the implementation detail, that it's implemented through closures, which would be a regrettable choice if we ever decided to change the implementation details in the future. And it also has the downside of looking like a function call, but having different rules for what can be put inside it: function foo(); closure(foo); // fine. special_closure(foo); // syntax error, undefined constant foo. Although avoiding new syntax is good in general, if what can go inside it is different, then I think it requires a new syntax. cheers Dan Ack