Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111307 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40876 invoked from network); 4 Aug 2020 08:33:37 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Aug 2020 08:33:37 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1255C1804DB for ; Tue, 4 Aug 2020 00:31:14 -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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from smtp-in.fusiondirectory.org (smtp-in.fusioniam.org [195.154.20.156]) (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, 4 Aug 2020 00:31:13 -0700 (PDT) Received: from smtp-in.fusiondirectory.org (localhost.localdomain [127.0.0.1]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 46459101304 for ; Tue, 4 Aug 2020 09:31:11 +0200 (CEST) Received: from smtp.fusiondirectory.org (smtp.opensides.be [195.154.20.141]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 106FB10105A for ; Tue, 4 Aug 2020 09:31:11 +0200 (CEST) Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.fusiondirectory.org (Postfix) with ESMTPSA id C837488AEA for ; Tue, 4 Aug 2020 09:31:10 +0200 (CEST) Date: Tue, 4 Aug 2020 09:31:10 +0200 To: internals@lists.php.net Message-ID: <20200804093110.177ba73c@mcmic-probook.opensides.be> In-Reply-To: References: Organization: FusionDirectory X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] [Discussion] Shorter Attribute Syntax Change From: come.chilliet@fusiondirectory.org (=?UTF-8?B?Q8O0bWU=?= Chilliet) Le Tue, 28 Jul 2020 17:57:34 +0000, Theodore Brown a =C3=A9crit : > Rust chose to use #[] even though it wasn't used by any other language. > Does that make it a bad fit for Rust? No. But just because Rust uses > a syntax also doesn't mean it's a good fit for PHP. For those which like me do not know Rust, I checked and it appears that "#"= is only used for attributes in Rust, and is not a comment starter. So that explains why it makes sense for Rust to use this. But it still feels like a really bad idea to me to mix comment and code in PHP.