Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121536 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 26834 invoked from network); 30 Oct 2023 17:25:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 Oct 2023 17:25:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A97741804BC for ; Mon, 30 Oct 2023 10:25:33 -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,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 30 Oct 2023 10:25:33 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-d9a6399cf78so4153250276.0 for ; Mon, 30 Oct 2023 10:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698686733; x=1699291533; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bvBuugS970jLEjgprPp2ZK6ht6XMOE3OY8YPXVQZLGU=; b=WpziCE0Gc7h5ndqW0/Y/VYlC80aYoy9Xzzmtch9AdN8W6TKQiPaS8FkTykl6tfdk4V 0l9NKVuyxwf9VVE3lB6eGxk649v70QJQY21BJcW9G/EFci1u87AKfycLC4GD/GTX/Jns XkstRktm9EogqR6JyodU4CQCcvWaP6koohoZR2TulHjaUO93syUCET8d1vwhvkt4O6Dz RGpCic5MlrUeVY3Kx29xXYIwFpe0yZSlVcXj3vC1h1Wrg4VxP6I0HgCvTGKyEWW8KKQR Pt0cGhBsAg6rl5w5IoGZmntJhSpdUyGC0z1K+k2BHXnwUpvE6djyNiB6teqwbtuHo9H7 V7nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698686733; x=1699291533; h=cc: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=bvBuugS970jLEjgprPp2ZK6ht6XMOE3OY8YPXVQZLGU=; b=q4rGBjKkduDbR/B49wm1bHEQk/rakpumddUeJHOVlxWm+7bPYfQo898AxhtHpB7V4S wi08RzO/E4/943zrS1ps+M3QxkF5miUd3wWCoGK3azLRYUgsJozsIdUsuizgEU6+KO56 5qALMQK5kbS8T9+V1XHMYG5qpp4Kt3wzNunDBXLsCSqEp5DzfpXi1u95LPWujW5m9JzN H2HpO85qnPxg9gbe0Ic4b02qLNOa73icVy9Yjz+Ni5aUQlhD3cVoJU5kdtXOSXD0mhgr MsGhdUf+23KuGm6H1f3AseMpVMe2Tyj6ove0r4r4JcI0i0nL2NF8gW1DZHkASeP6xHRa OvGQ== X-Gm-Message-State: AOJu0YwKs+mLA6H3FJ7MLCxnj+hKBUl+cYgKxpaVmh/F4frSUDVljSYd 0JA0gY4KReyzBAnlDfcMV7s2z+ZIuvFUFd6sChfJdpXm1tc= X-Google-Smtp-Source: AGHT+IHZubMWuN5jkm6M1OCJNBM/KzPi03nBE29jf1xhSS25ZJmFTJTgbNQiNToYxKlqaX1Dog8tQ8AFTjK0PbQWFNA= X-Received: by 2002:a25:b09b:0:b0:d86:4342:290 with SMTP id f27-20020a25b09b000000b00d8643420290mr265656ybj.21.1698686732878; Mon, 30 Oct 2023 10:25:32 -0700 (PDT) MIME-Version: 1.0 References: <22ad21cc-f6ba-49e9-b1a9-8c73fe173648@gmail.com> In-Reply-To: Date: Mon, 30 Oct 2023 17:25:21 +0000 Message-ID: To: Hamza Ahmad Cc: Alessandro Rosa , tag Knife , Lynn , Marcos Marcolin , internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] New RFC : empty() function From: tekiela246@gmail.com (Kamil Tekiela) I would be voting against any function that checks for "empty". The `empty()` construct we have now should almost never be used in any reasonable code. It should be avoided at all cost. For this reason, I see no need to introduce a new variant of the same thing. I also don't believe there is any need to fix or change the existing construct. Leave it as it is for use in legacy projects. Maybe in a distant future we will be able to deprecate it or maybe we won't. While I personally consider it a menace, I don't mind it existing in the language. But please do not add any similar functionality.