Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108944 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 52256 invoked from network); 10 Mar 2020 13:32:35 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Mar 2020 13:32:35 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4AF791804E4 for ; Tue, 10 Mar 2020 04:53:29 -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,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15716 95.128.32.0/21 X-Spam-Virus: No X-Envelope-From: Received: from mx.kolabnow.com (mx.kolabnow.com [95.128.36.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 10 Mar 2020 04:53:27 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id 8FA80404DA for ; Tue, 10 Mar 2020 12:53:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:date:date:message-id:from :from:references:subject:subject:received:received:received; s= dkim20160331; t=1583841206; x=1585655607; bh=rCBbaYrN1b3/sxsF0Wp agQ2p+JsY5eFdEEO56E3l1lk=; b=rl1X+mSK7GEAn5KdNuPb1IpbtVDS/h99uLH saVCTbGih8q7npPM8CxDbwU+0mZkRf1X2h6B4ffwHQVAGFH974tRvHcovkzTrzM/ L/KPdn6V7s/HmSJk5feZyA3+fKQU0X3rzU5dGSZbXc51a4NNt1//BjP8yI2sVUUN WR+b0QAnqEV2tmKiOpOcp8yW9p/vtvT9h7oU1hvsZrZN9aP0FduzA3IqdN7N85Nh ThMw02BhrS/AzXLBF6no+MYiY9ajpQBu4vURg9hlsVr24c4G8ZwujGX2jmIuB67+ 7giK3jUGBQ82P72oFl6RErRf819m1I5t/wOwhkqglZb1/87F0fyV3mDAk4khpYQC KyUu/aGEthCWW7niGresRQHMlp9XAsIV454eVz6IEmkUImve3d3BBhCoyrWKhSNS SYMgQ0tRf2ZLXLOh6waIRwX4bQoJp7fbdOZtsQaOnxdxoIBVUFvOH0wc5zzZ622u EL0dpgSIW0l0QN+F499jfG0DBs6VrkdiLsy/MIY7UkBUKNcuqn31ix3Lb6ONCKYN 8/nN8hWNcoQFZcwTyhtkbLnw6bI8CnT+VnVacgeaHp08Sx9pfhrKR8magrKsX7pH 5FjM+K8xwHdRAR7a5uq7Ow8zIkYzOxTV58i8Ki7oF/b8QrblSAGlOtbeCpWIfYUp d6+NFBrU= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tGBK9xBfqICv for ; Tue, 10 Mar 2020 12:53:26 +0100 (CET) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id 04B03401A0 for ; Tue, 10 Mar 2020 12:53:25 +0100 (CET) Received: from ext-subm003.mykolab.com (unknown [10.9.6.3]) by int-mx002.mykolab.com (Postfix) with ESMTPS id B7CA0424F for ; Tue, 10 Mar 2020 12:53:25 +0100 (CET) To: internals@lists.php.net References: <2227A758-3035-4A43-974C-C4461A096DFB@newclarity.net> Message-ID: Date: Tue, 10 Mar 2020 12:53:24 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Attributes v2 From: alec@alec.pl (Aleksander Machniak) On 10.03.2020 12:43, Mike Schinkel wrote: >>> Alternately, why not use this (which is probably the best option IMO)?: >>> >>> function foo() attributes >>> SingleArgument("Hello"), >>> Another\SingleArgument("World"), >>> \My\Attributes\FewArguments("foo", "bar") {} >>> >> >> This particular example leads to complications with how different keywords >> stack up; would the return statement come before the "attributes" keyword? > > How does the return statement affect this example? The return statement would be inside the braces, the attributes would be before the braces. I think he meant return type declaration. That's why the question about the `use` clause is as well relevant. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com