Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113528 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 90528 invoked from network); 15 Mar 2021 01:53:36 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Mar 2021 01:53:36 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 963831804C0 for ; Sun, 14 Mar 2021 18:47:00 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (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 ; Sun, 14 Mar 2021 18:47:00 -0700 (PDT) Received: by mail-lj1-f170.google.com with SMTP id 184so14337422ljf.9 for ; Sun, 14 Mar 2021 18:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZCLkdRvuknwdhhgJ8qGf/FLSRABXRJ+onXuuAE+H3l0=; b=dkCKr6DNedBU0t4MNnxJy2m5D5w9c1rMCQrzEA/SAzM4spEzJLYfFmTjmmshtTqiSS fpm1r9kwjDDm9vkJyl5BoetRm9ZHaOYa/zqzlhMuhpRA2oHd/objO0jwx8zD2Oz4H3PP LzLFaclDGZ9nO5EsvA57ZYcJXCq179euXM2MWKRtsjleOJZ57dAMDOuari3iohNu343H KyqhR2MPaOlESHIILdh3f50k4hvOIRY778LjQ2inaSEQI4yDbZ0AUEGwK8ZGtX3ZQSTj S3bCvWRSf9GG/gS5lsLXQVGcgoYyIgzihn6pb5q9VE370cdaPvHo7g0zuHfhjy/wlE0A BdYw== 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=ZCLkdRvuknwdhhgJ8qGf/FLSRABXRJ+onXuuAE+H3l0=; b=tvOC7vZlsxDkibpf5wyixQOuPdrIZS0nvJdPfj74BzoiDExhDujyTiwL7ssS3l7pqO TnSU6HlN3PjC16YlNFIZ6cq9o7WC6mvp1ZEyXH1al+kw1QOc/SdurSpZ5KIEzTIBNua3 jiZkNmOsxK1mOPD06mahmJykq8OpqMty8e6wqh3jokLXt/nb+9tYPhl+DWLPidiWG+Bn U4IWJjox3kw/6pLC0MXjEMNGZnG07csIIG7dtzElyqyPRzKsp7DXYbEqFakT2RBb1n1W aQ8QrLwwuIB1yUpR5qN6ib0k1b/QYO/GET2gtRwMeHXQXyZtG577chLr4EfvbeIHyZRR fRsQ== X-Gm-Message-State: AOAM533PCopUbn4CGUiaScyxEnMXCONvt9mK4Oh5gsP4vZ1dSQ62UFGD IvS1bkfNawFDhEtz1MziaEpdRHNSHU1FXI/7e9E= X-Google-Smtp-Source: ABdhPJwDecft0jPJRa+2TJc5T6+lfg5WebvCmXRwT0TdXwMDuHYf5J1WZTTgOga18P/r7R2cfLQU5zh85WYP2SgJetk= X-Received: by 2002:a2e:9118:: with SMTP id m24mr9307939ljg.415.1615772818516; Sun, 14 Mar 2021 18:46:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 14 Mar 2021 18:46:47 -0700 Message-ID: To: David Gebler Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000e2ac4d05bd896c60" Subject: Re: [PHP-DEV] Built-in decorator attribute? From: sarkedev@gmail.com (Peter Stalman) --000000000000e2ac4d05bd896c60 Content-Type: text/plain; charset="UTF-8" On Sun, Mar 14, 2021 at 6:34 PM Peter Stalman wrote: > Would it make sense to have both options? > 6) Multiple decorators on the same function? One problem with the wrapper pattern is that if you have multiple decorators then wouldn't that end up calling the function multiple times? Not so with the before/after. It really depends on the intended behavior. How does Python and others handle this? Thanks, Peter --000000000000e2ac4d05bd896c60--