Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123486 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 902CA1A009C for ; Sun, 2 Jun 2024 21:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1717363653; bh=UtmHsTuia/aEAEBWCSL1c8+UXZNiUsUDWNW9B7k+R48=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YqeS6qFaiCi0/vujXw2S/dRAkcFsBjr+cUhegAUG/Wapg/yD2MRCaMh4YYqkTvkoH 9k4HmaRQU+Yz8Krvwdm87QWhL2df8qAVd/NEASZYADJp8Shja4w3vvrt0iljXuRLwQ +1AYjkUEEkCQ/wDUl5X4o4kwsprDPl4AcWdFb4o2s72J2mkuHvB9fG49pu4Qb3RE+r v4vLkqXocKuHtZIYSDMFKQRefq6uBr2nCELWlQndAC9clYNk4BTc3DKaibw8nNof/X cvXajlGi9rqErWy3eHo5KEe8q+cBEtvEk2hG0uBuiqMyJtVqxx/A+PvlbNlXu7nuZj uvu0AM3E4UGjA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1CCA6180039 for ; Sun, 2 Jun 2024 21:27:31 +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-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 ; Sun, 2 Jun 2024 21:27:30 +0000 (UTC) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2eaac465915so4995541fa.1 for ; Sun, 02 Jun 2024 14:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717363586; x=1717968386; 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=UtmHsTuia/aEAEBWCSL1c8+UXZNiUsUDWNW9B7k+R48=; b=MNfiHs4l7etvvbPpcreR3oQgRw2Wv4x6MbgWIhz66PEUfav6pT1ePJVagAS17hyOQ7 ZCExApJqE0vo8Hh7t3f2Hu2FcGxKIAIc/1qbjkYI/RwKdfsjjdBxDZjxNKWmRWa2lnHp yziQyGSjvZHtZTo1izB+TUdlqa6qxvXem5/A1Z2o0h+IJpswrH2XF2m65MDwohnK6TWO OJ+Ra+NZde7jyIRC3D1l3yX1TEBhn4eS3zSDO3h28HrghlLtozYoBgf/5sr6ovAjWf8w /i0c5pcBO/tEFTpYT23H6uKuSxdI6ZcRRlIND8wxCzPFrtr0F8vmBx7rLHzj5bFeM7JU upRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717363586; x=1717968386; 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=UtmHsTuia/aEAEBWCSL1c8+UXZNiUsUDWNW9B7k+R48=; b=JbtR9QkhRAxNXWPx7vGewxx6UqJQ6RFUi/YKnDhxiYPLhSkIwJjmUm6rYm/r9Az4KN JWw7+kywEQfKfJoKYz4IudthPcZcuXBJEmmCgZzqAnnolS9p3ykp4d0fde2f0Tl9ZRGN 0iItpyH6kA9yk2BkKwhdmVXA0RdZ5GzRXuk08sR7pOGngSabIXEqyNNidGncY3nhKRoc EMCK5dbfPOFBaDWgGBJ2AOOhVqG4Ii7ioAu10E1EEtbUJ+F5LAjyY22richBwy4iAbBM uCur8I/6ERWpIF+v/P4MPfXMUKR+InV7L0EUtUBjE3M6Vx3t+UBLJR9bI4Bm2o+uk69x jIOQ== X-Forwarded-Encrypted: i=1; AJvYcCVLtoEleGlbAY+fL231Jc1OE3cqpH1bGFeE5xVUI1jcoPN+06wwoU7KXzN3Q783lhfJ3h8xXlYRlVcriq02UuHIosVt2FJh0A== X-Gm-Message-State: AOJu0Yy161+2F0zuIkVLn33mXR8bXZMrXMr8FAKZNP3mzXiddEEczUtp mBfMsJDqPit/xo1oip0SfrUvTjDEQb39BmkQqMZZKd0/3qXufA+OLpsfHCxD9whU37wbA6Ak5ia 5PPwr3CBEoawpb5DcmDvFjne3hegOWTau X-Google-Smtp-Source: AGHT+IF10SGB+c6cWol2V+JhjIcwKL/VWqcsgDDTIzKuyB9aelGspDv6DJ6Z8kwEodpxxroyt6uSQvDJJhxfhcHtlaM= X-Received: by 2002:a2e:924b:0:b0:2ea:92dd:6895 with SMTP id 38308e7fff4ca-2ea9512f833mr47455051fa.18.1717363585655; Sun, 02 Jun 2024 14:26:25 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <81CBE5A8-9FAF-40DA-8EAB-9F19C2278E75@sakiot.com> <73ae49a3-473a-46f2-add6-164b0a01e357@app.fastmail.com> <5iUDJtfp_0xWjhfj9MpeJhmZz5awy0RyBF3udkM1TjF5HRfbMKoZrqVNJJWM_g07J1oLDZxsJh_6WbGEaqdNj6ZiE96SjLhfv_r62YTMiRo=@gpb.moe> In-Reply-To: <5iUDJtfp_0xWjhfj9MpeJhmZz5awy0RyBF3udkM1TjF5HRfbMKoZrqVNJJWM_g07J1oLDZxsJh_6WbGEaqdNj6ZiE96SjLhfv_r62YTMiRo=@gpb.moe> Date: Sun, 2 Jun 2024 23:26:14 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum To: "Gina P. Banyard" Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="000000000000792a330619eede6e" From: jorg.sowa@gmail.com (Jorg Sowa) --000000000000792a330619eede6e Content-Type: text/plain; charset="UTF-8" > It should also be noted that ceil/floor is very English specific terminology that may not be immediately obvious to non-English speakers, thus my preference for using some variation of towards positive/negative infinity. This statement is subjective in my opinion. For me, it's the contrary, that's why I'm opposing introducing new terms to the PHP replacing ones that already exist (ceil()/floor()). I don't have the data on such modes in other programming languages, but I checked the data in Google Trends: https://trends.google.com/trends/explore?q=round%20toward%20positive%20infinity,ceiling%20math,round%20positive%20infinity,towards%20positive%20infinity&hl=en Far more people search for `ceiling` than `round toward positive infinity` or `round positive infinity`. Of course, I may be wrong by choosing incorrect search phrases, but it's also good to see some data/examples that changing this in PHP is for the better. > by *removing* the newly introduced constant and instead exposing the functionality *only* via the new Enum. It brings inconsistency that some modes are accessible by ints and enums and others only by enums. If there is no deprecation plan yet I am not sure this is the right approach. Kind regards, Jorg --000000000000792a330619eede6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> It should also be noted that= ceil/floor is very English specific=20 terminology that may not be immediately obvious to non-English speakers, thus my preference for using some variation of towards=20 positive/negative infinity.

This statement is subjective in my= opinion. For me, it's the contrary, that's why I'm opposing in= troducing new terms to the PHP replacing ones that already exist (ceil()/fl= oor()). I don't have the data on such modes in other programming langua= ges, but I checked the data in Google Trends:
https://trends.google.com/trends/explore?q=3Dround%20toward%20positive%2= 0infinity,ceiling%20math,round%20positive%20infinity,towards%20positive%20i= nfinity&hl=3Den

Far more people search for `ceiling` t= han `round toward positive infinity` or `round positive infinity`. Of cours= e, I may be wrong by choosing incorrect search phrases, but it's also g= ood to see some data/examples that changing this in PHP is for the better.<= br>
> by *removing* the newly introduced constant and instead exposin= g the functionality *only* via the new Enum.

It brings inconsi= stency that some modes are accessible by ints and enums and others only by = enums. If there is no deprecation plan yet I am not sure this is the right = approach.

Kind regards,
Jorg
--000000000000792a330619eede6e--