Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111612 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 54797 invoked from network); 18 Aug 2020 15:36:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Aug 2020 15:36:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 572ED1804AC for ; Tue, 18 Aug 2020 07:38:06 -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,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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, 18 Aug 2020 07:38:05 -0700 (PDT) Received: by mail-wm1-f50.google.com with SMTP id 184so17252898wmb.0 for ; Tue, 18 Aug 2020 07:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kPy3Cpcmc8/OcvDXWwm1nX49760lzwF9QCMe69jIkN0=; b=jjl1d1pGAPdzA24h66QejbcjPs3iYORgsNg9Eur6nXA84BaLLD7VuFRAR7VUZPI8zQ r5uK4rqGyLIdIQvW9N/qmuyed9XSEQI3OSByJRZloKZdy/xkcS0Xqji+1fwtI0W55n5I KsyAfrffhlo2SfIeO4vbYC6EoOuFiarWdQUDXvPh9ng0AlKYWrPIzAXI7uYQn3gHnXrd pJ9Ol0X3G+l9fyxZ9tCXwp48pVnkuBWYIe2l2q4rJccgLgUgZGBdVa/n3nRd11bORfdk lk8yTzrA1pBQHJNVEkZ1G9XKoei5Yp78It4Offdj2s9VFN1J44JT2a38sUheJZc3P18g Ucgw== 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=kPy3Cpcmc8/OcvDXWwm1nX49760lzwF9QCMe69jIkN0=; b=kBI9XyYVMkZgaTLpr4GjINDnvMBOIW5sgCiEwb7ahkM9e00IkW7gOLCYQQ/O7KnOUD NiX4kKtcrzZA3c1mzPNV4tRrFpMxD697FpsTiqI6ydN1mdUf6kx8lX3Y9Ww5W8M+urxH 2YqZ6BlE02UR30egEBcckEI6xqTs3AM3jDM/hJvsyzpnao6JRf6KCvFkUNJ1rHzaPBiy F/ZvNM4EAnSjgfXNuhCCxgHfI4H4gEy1Olv0+bFUMlNmozUuSiORdEIanQmU7VYkeGbW CGd+q0tfgNUfdUM6d8mQdK3K+50uYdlYBR+tzi2+NOOh9D3j5THGwaIR729tNTX61kCX G5uA== X-Gm-Message-State: AOAM5304nUalnD45ndXPDogeDKbatEayogd5kgtL8cx4quX5EBkvwIkH Dn9VTXqjQ/Oqmyl075uHlCCHjM8lykpWiqljHlpHvFpKbQxuBQ== X-Google-Smtp-Source: ABdhPJxpCqNbx4p5VbVT05fmpiUDGWuzMmMxVKHUBRsLLTTK6qozJ0NirPD5p+gxZhDgYveC3MDJwfuhta/ICjltHS8= X-Received: by 2002:a1c:6845:: with SMTP id d66mr263741wmc.36.1597761483237; Tue, 18 Aug 2020 07:38:03 -0700 (PDT) MIME-Version: 1.0 References: <7d6c42a4-53cd-5e38-4ffc-02fe490d66a3@gmx.net> <9A07334F-1A55-4E7D-88B5-7E6BABFB5E81@newclarity.net> In-Reply-To: Date: Tue, 18 Aug 2020 16:37:52 +0200 Message-ID: To: Aleksander Machniak Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a5030405ad27d522" Subject: Re: [PHP-DEV] [VOTE] Shorter Attribute Syntax Change From: kontakt@beberlei.de (Benjamin Eberlei) --000000000000a5030405ad27d522 Content-Type: text/plain; charset="UTF-8" On Tue, Aug 18, 2020 at 8:49 AM Aleksander Machniak wrote: > On 18.08.2020 00:35, Mike Schinkel wrote: > > 1. Postpone inclusion of attributes until PHP 8.1 > > +1 > > I wonder why my suggestion (somewhere in this thread) didn't get any > attention. Is it because the ship had sailed or it's a terrible idea? > A suggestion requires a patch, otherwise it's just theoretical. One problem I see with your suggestion is the conflict in a code like this: > declare( > SomeAttr, > AnotherAttr("Hello world") > ) > function someFunc() { > } > > It's almost identical to #[] or @[], but it looks like PHP and has no BC > breaks. To me it also sounds good - "declare attribute(s) [for] something". > > ps. sorry Mike for a duplicate, I pressed the wrong button. > > -- > Aleksander Machniak > Kolab Groupware Developer [https://kolab.org] > Roundcube Webmail Developer [https://roundcube.net] > ---------------------------------------------------- > PGP: 19359DC1 # Blog: https://kolabian.wordpress.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --000000000000a5030405ad27d522--