Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122518 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 17EF11ADB7B for ; Tue, 27 Feb 2024 17:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1709056206; bh=RDEkl9DPNKASEP5V74tFrnULMG+7gyMbu6UepW4Qz2I=; h=References:In-Reply-To:From:Date:Subject:To:From; b=FP1dGFQkM4l9tThxT5Sa9nVgGUQp7D4aK3u4QdRt69/dDHLkALTeVs8PoKZjtLwM0 aj/SGJYL/3XcYm/9mq9/lU/fkIyCYEDSLV/crJHOAsBSNANYgpFBoroe6sid3UQ9UU RWE46bQ5XNVsICm1ko3GO07c3M3eENEbytvqgxae+sKzijScEZbuTAKLRPPgFWKZXm /TIWLfqjGZ76keoZ9mX5z808Boh06niTmphufJqLxqk86hjOa7wikONnuu3ubN1TqD jxiZjUZVKJOYcwp450z5rdwvTeo7IlMGgivJgM65SGTiPLg3VlC9GFxrXSfrJquRGX iMsKpdfYyAdOA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E9B591805AE for ; Tue, 27 Feb 2024 17:50:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 27 Feb 2024 09:50:02 -0800 (PST) Received: by mail-vk1-f175.google.com with SMTP id 71dfb90a1353d-4d331ba6078so120936e0c.3 for ; Tue, 27 Feb 2024 09:49:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709056193; x=1709660993; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=RDEkl9DPNKASEP5V74tFrnULMG+7gyMbu6UepW4Qz2I=; b=TMOrdo6LKTnkMTxg7/lAwKcU1XZKEy6OUaSS/JaJb88JzlfxWgLEl6Cw2Xzu97pnh2 rWIN8BX8B+VQu0n0M/Ynm9imYvJJVeCO+msZGsNn91AQlXf9FpjvDMDKVSEYhb77C1Pt JkNGDi36MjUUJZqNmJUzh1+1k4aUIt4GScFKaYB7W9mW8/bEoKWSQAFUUHnHWVHHyQ1M QXHnzKpx3aadfKrGRnlapznQe94pu2cWBMX7CVhlqd8Vy8kjimOoFyUhF1hxKQb6I3ez AHx5ztmlWIggClD234j0mMWGndqmW9EYHCObKztcvymXdyjOy+Der1jDMQMRtyi3Ak4M aDxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709056193; x=1709660993; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RDEkl9DPNKASEP5V74tFrnULMG+7gyMbu6UepW4Qz2I=; b=bGfZoEGfm/FVhvkE1JpLQF4vFdNYKA0eu3sgd0SjVMNJTBxVE7SSeoSj6eXf/xPwaQ 7axHmkNyNEwv8gZCVm+VD84SSRjtXlqWKsjJZtFYgVDeKHyUiPEz9lmIuehCg+td8gzS PcWYZz0XTQ8t57AmyxxhyxIcZUp8AC/N3lvz59YR8gU1w3sL0+QZMI6Ki+sCP14f8VY3 6L29YXx8/Vw35RtWZ3iFhEzhIoisGmbpHt6FgseCWq+LnS89BPD7Sc49sAs8oHtYsVoG HS4U0o9hS7UQPVZfBIfokzCcm/HAnPzXSvTcb2bjZ2GoMv4Ec85qgScxAG0Y84Z8xfd2 X6JA== X-Gm-Message-State: AOJu0Yx8D9YF9L3PRU8N7EIrYhWDbWh8JA1K0APxQiDMqjLC2gEeLMfz yFpVzS5A6dlwVhAC+55FR7joJU4LVW4tYnD62T2gCstaSrf0BQ5qM1Yg+HBz7eBZIIcMrRBwHYg QxDTbaw3lHHPPMhukWFeCT+cKPv/5dtzlki0= X-Google-Smtp-Source: AGHT+IF6iPjgNA+9PNwuUZpsu8POdpc9u8T7QXJSZYsXlzbs0A5ruqiOfLnTthE/4nDMZ1Jk17/e332nngryeqjLyuY= X-Received: by 2002:a1f:c706:0:b0:4cd:20ea:35aa with SMTP id x6-20020a1fc706000000b004cd20ea35aamr6949637vkf.8.1709056192687; Tue, 27 Feb 2024 09:49:52 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <790b5b4e-f51b-4050-a12a-5fa903d0568f@app.fastmail.com> <52C6F501-8E23-42D7-8541-88A22AD79375@koalephant.com> <36e90d8d-d275-4ce9-9dd9-1e2422c6d3a9@app.fastmail.com> <2fdf1933-b51c-40cc-8d02-31899b96c71c@genkgo.nl> <95e93cb9-3ab0-4cf3-8ec5-83e74c9dd607@genkgo.nl> <876aff9f-3eae-4d2d-8e3f-30dfbbeed49c@rwec.co.uk> <963f5cc5-cdb1-4384-b519-5cb15640654e@genkgo.nl> <58B82A81-8A89-4F17-B982-7FC36404032E@rwec.co.uk> In-Reply-To: Date: Tue, 27 Feb 2024 14:49:16 -0300 Message-ID: Subject: Re: [PHP-DEV] [RFC[ Property accessor hooks, take 2 To: php internals Content-Type: multipart/alternative; boundary="0000000000004438e8061260a7c2" From: ericklima.comp@gmail.com (Erick de Azevedo Lima) --0000000000004438e8061260a7c2 Content-Type: text/plain; charset="UTF-8" > It sounds like most people are just really, really pissed off by an implicit variable I think that it could be good to follow the PHP way to mark the "magic" stuff, which is putting leading underscores on the magic stuff. It's not pretty, but it's good because our eyes can detect the magic stuff in the code almost instantaneously. I particularly have no problems with magic stuff, since it's well documented. But I admit that the leading underscores help me find PHP's magic methods inside a class with no effort at all and that's darn good. -- Erick Lima --0000000000004438e8061260a7c2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> It sounds like most people are just really, real= ly pissed off by an implicit variable
I think that it could b= e good to follow the PHP way to mark the "magic" stuff, which is = putting leading underscores on the magic stuff. It's not pretty, but it= 's good because our eyes can detect the magic stuff in the code almost = instantaneously. I particularly have no problems with magic stuff, since it= 's well documented. But I admit that the leading underscores help me fi= nd PHP's magic methods inside a class with no effort at all and that= 9;s darn good.

--
Erick Lima
--0000000000004438e8061260a7c2--