Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128583 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 lists.php.net (Postfix) with ESMTPS id E684D1A00BC for ; Thu, 28 Aug 2025 11:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1756381971; bh=LLRlRcGmAGFPFcx6eRviAVUzoyShkTvP+tm9DTdZYPY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=doSKPFoUPiquVWmp5wRcXNX7KnM61Dx0wHiCnR7gD+dKzNUljLgIDxfSemy7AajCU oGYpqMfzoMHdBUcoHqmC6MbaywBraMgy775wIUtEzNfr4KfVOb5L9KcO4u6DbtlP7T eBd+7EkfDmGfO0DdrJJuTVG188ouqeIWt6DJviryYkNl5WiDZKxd75cezYLKKAuyBC 7H7Y/jUuDcGQWQ+pz57TikzVa3Rbf5+aOAFdRnmzXHJVr/Emk7pkVBQ77cXLCTbqwd IUtxATiUhN4wtnAni0/IHJFYJai9jPUwj9dW+GMdGn2FjX/Rz47z2id6VFoDz2QX7K Sc6ctAzL33VFQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2072D1801FD for ; Thu, 28 Aug 2025 11:52:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 ; Thu, 28 Aug 2025 11:52:50 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-61cf429f4c2so105148a12.1 for ; Thu, 28 Aug 2025 04:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756382061; x=1756986861; 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=LLRlRcGmAGFPFcx6eRviAVUzoyShkTvP+tm9DTdZYPY=; b=GyetEEIPFiXLFdx3m6lWnfjNWvADeTRxRkOD226iHLH56z4EGa3RBof957Kas64QCW mj6EAGITiRzflfzcgUBT8qIOiXSwnO7YhxTyl7bNk+dFd/Fkf7XYNlYdtscaaYT5v6f0 qaBjR9LFLksuoq/WGlqQuNXySRzqU0y53R5aLgRhU4WuiN+S/FNUOIBilCtnfE4+Yuch ahu7fu5VEH9kEgo3Qo5lr6iR5JSxWOv9s5bWC8LTHjEVMsp/CSQ+gKXlJPeVzDSa0uGr m6cb5Yu+i/IRriztz9DPXr0YEDieZcF2PIDzGOqy+9Pc3c9vqSgRULE75l7M4hV4ayh8 tM3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756382061; x=1756986861; 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=LLRlRcGmAGFPFcx6eRviAVUzoyShkTvP+tm9DTdZYPY=; b=cWbFEiJZISY7xHf5lqv+YHYNj+4qknsKaZVYrU5JwAOFOiiUWn1DKbISuUneuHwThC wQMeXfTg9nzW/Qe/lrTTkIl4qtopJk+kZ3Q2WTB0QprC/5tjFt1MM909T91XQZ9dvjng jJIAYffFC+JWESTTpk0tjJtOclq6UvWa2GZrDdme3UnjqP9UKJ1g0Rtfg/C7n9Iewy94 xOrgZJeAqSQUPdqte69J1tZ+8cpV5vdI0ZlY2R/+bCVOIqn/dbrJ4JQGIWpGURK8DEzO 0TJDQHnNzp0yJC93O62pwP2WqeUVlMQBT3kjucP9Iy6UkA4dTDJsyUS7dQDzXBcM3HBh y8Gg== X-Gm-Message-State: AOJu0Yz6Q1nv05JmEpDLIQ0afV6K5+jvQc6fsypcFzAgL8srtanvt3Hm 24XgwSAnk0dXeoq4BYqHPIK3XOCdsqF92jiWu+RtQJeJhDVyQ22Cv3Xd8Z7URyygw3i5CpLgUMM 4WwytJBLUWtHBZzfQzkgHhPihETlaIhmROVhU X-Gm-Gg: ASbGnctDPt6v40wGkjKrZv4pV3Ai9SxuWAoFmkU6X8pUWaWHH1wgDt7xSwzFoycqJrS LK8C5vjHAWY3Id2fkX0OEIj0OXigfkK3J8Y5DxthN/RMO4tUt+QAMOinDwuave4VDreDlSMJopO Qun+T2HkzdfOguucByVx10hcPMkvWD1Of7ojoVE/qxhzN4AxpUjldMBwlxoSG4GGGiz2HEcbZ3y yl0JLOD3eclK29LDWnh6iZArdrswF0dDC0MA82iArFtpxuBEOvU5hnFMzqFkiDRFDv+cfXfdQ== X-Google-Smtp-Source: AGHT+IHigepz9rUF4TxLCkfkE5L2ex3YIGm1OPHjLXqd2kZa0by/emDenApUN042oSKnMYvh5nEWAET+tprYOo9JL44= X-Received: by 2002:a05:6402:268b:b0:61c:5264:902b with SMTP id 4fb4d7f45d1cf-61c5264918dmr12277479a12.38.1756382061157; Thu, 28 Aug 2025 04:54:21 -0700 (PDT) Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <499395ff-4ac9-4dc1-86fd-697b205467ba@bastelstu.be> In-Reply-To: <499395ff-4ac9-4dc1-86fd-697b205467ba@bastelstu.be> Date: Thu, 28 Aug 2025 13:54:10 +0200 X-Gm-Features: Ac12FXyBJ-u_fGE3tmsDoW58J9CBF24TxahoTS3xngIUZjeL-UY6rbVHeXzs8Bk Message-ID: Subject: Re: [PHP-DEV] [RFC] Add "is_representable_as_float()" and "is_representable_as_int()" functions To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: PHP internals list Content-Type: text/plain; charset="UTF-8" From: alex.daubois+php@gmail.com (Alexandre Daubois) Hi, You pointed out many valid issues here. After taking a few steps back, I wonder indeed if Gina's proposition [1] wouldn't be enough. Also, as Rowan said, knowing what these functions should exactly do is complex and I'm afraid we won't find a happy middle ground that suits everyone and every situation. Based on this thread feedback and suggestions, the use cases seem niche, for is_representable_as_float() at least. Best, Alexandre Daubois [1] https://externals.io/message/128032