Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126352 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 860771A00BC for ; Sat, 8 Feb 2025 15:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739026992; bh=WYf/LNz+WLC/FoT6HKaNH4eA9Ei5D5XxMia14f24/oA=; h=Date:From:To:In-Reply-To:References:Subject:From; b=ORT3dn5CMbPwww0QRlH2l0R0gm4FLDUcaPhIuLvexpZYSfZop9xMqSEZrB4D9Xao/ B+DzO0YCBxPb31XEsUSatbRx6uf5Y7kjk9C9BJW1PwpdvBLtNhg9NaVuvBRFJ18RCd pLllWdqIBs+GE4y/kpyT2ExDFtUi31P4CarJcgwoj5sTK8Wq+rGKITy0vQFtU8o37r mfKJ2mcRGUSMk23boj0dX4lNEP+YOwjdWWjPZ+M3m8/7tKIDph9OC44Fxwgm2njosn EgyNFy8PIc8NyPVWimOiNe3IM2aGRRj/rVcJ5zh/LCxzmnVaek51Q8SWAmo3MKtzXq 7q7gS805o0DCQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 846A31801EA for ; Sat, 8 Feb 2025 15:03:11 +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.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fhigh-b3-smtp.messagingengine.com (fhigh-b3-smtp.messagingengine.com [202.12.124.154]) (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 ; Sat, 8 Feb 2025 15:03:11 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id F34D42540150; Sat, 8 Feb 2025 10:05:54 -0500 (EST) Received: from phl-imap-09 ([10.202.2.99]) by phl-compute-01.internal (MEProxy); Sat, 08 Feb 2025 10:05:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bottled.codes; h=cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1739027154; x=1739113554; bh=WYf/LNz+WL C/FoT6HKaNH4eA9Ei5D5XxMia14f24/oA=; b=ejcmUbDoOlvzWofzwWtr4RfqxI OVOAmCLCFe/Rfdq1VCrtDXrtHxXc9wxETpL8WiKSWoIFWt1LCbG+KNfruve9Ps1g YDj/6KIjL04ogG3E/mIDJCr9uuxWX1NGfPkLG7Mug5RkiCDTJMcZZOd3hLKmiUDc X06OTECWeMitp48jqNOxSZTLSfQ9FB/H0exJ5e3isCZejjhwPdhri1shFs4gkBRt HpJevqIN85rtozYOJ7qUvlZ1RhnPhl9V2Fw/z7sqYic/703Ks+LRZpd4FVQWEpss 0YpREVdeSBctK3hZJpazEahDaOEvEJ65zaj5FZ0OC1vAvIx2FucYrL6efwHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1739027154; x=1739113554; bh=WYf/LNz+WLC/FoT6HKaNH4eA9Ei5D5XxMia 14f24/oA=; b=pDW22CkMXrvwYik3l6nlj//cRsNqPdRqQqNYMZ7sCTRAGKbPFaw fJRfXEIaWVBNVnm/JaPCE1f1UoH0QBUCuQVxqb0Qem5Iw099gWoiSp93KnLJEp+u L7fSHphJ3eSXcTsKG2ddPgAYy4lRIJBxw7NQhOA5LN4LraQvzFo5qoh3pJPkpI9+ OHM7zQl9ekU3vUnwyEyQ32Hww6KWn5Vcjxlsos8YlM9Qrk7YGr09lX7qeVSqGx8R L9UIDZmhU8zf7JWE50KyWPNp6e8wMO+A7gWuKRHeZnWRjiNmZC+aX09r5dzZIl7w vE+So3oNftiCrpuKOveZrFVA5bMrNnxlhcg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdefvdehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefoggffhffvkfgjfhfutgesrgdtreerredtjeen ucfhrhhomhepfdftohgsucfnrghnuggvrhhsfdcuoehrohgssegsohhtthhlvggurdgtoh guvghsqeenucggtffrrghtthgvrhhnpedtueejtdethfeulefhtdelieduteelffdtudel heffgedtieehhfelieejgfevgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehrohgssegsohhtthhlvggurdgtohguvghspdhnsggprhgtphht thhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehtihhmsegsrghsthgvlh hsthhurdgsvgdprhgtphhtthhopehsrghmrdhlvgifihhstdeitddvsehgmhgrihhlrdgt ohhmpdhrtghpthhtohepihhnthgvrhhnrghlsheslhhishhtshdrphhhphdrnhgvth X-ME-Proxy: Feedback-ID: ifab94697:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 75DE178006A; Sat, 8 Feb 2025 10:05:54 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Sat, 08 Feb 2025 16:05:34 +0100 To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , "Sam Lewis" , internals@lists.php.net Message-ID: In-Reply-To: <8053193b-0637-4db4-825d-56e7746111dd@bastelstu.be> References: <8053193b-0637-4db4-825d-56e7746111dd@bastelstu.be> Subject: Re: [PHP-DEV] Introduction - Sam Lewis Content-Type: multipart/alternative; boundary=40c4deab916e40848711a67967f9167d From: rob@bottled.codes ("Rob Landers") --40c4deab916e40848711a67967f9167d Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Feb 8, 2025, at 15:58, Tim D=C3=BCsterhus wrote: > Hi Sam >=20 > On 2/8/25 15:30, Sam Lewis wrote: > > they wished PHP had built-in functions for converting temperatures b= etween > > Fahrenheit and Celcius, and it seemed like a great small change to l= earn > > how to contribute to PHP itself. So here I am! >=20 > That's great. Adding functions definitely is the best way to get one=E2= =80=99s=20 > feet wet with contributing to PHP itself. >=20 > That said, PHP=E2=80=99s standard library is already pretty large and = any new=20 > addition should provide value to a large number of projects, given the=20 > amount of work associated with it. A new function might conflict with=20 > existing userland functions having the same name, it needs to be=20 > documented (and documentation translated), it needs to be maintained f= or=20 > 20+ years and of course there's all the overhead of the RFC process. >=20 > I'm not sure if functionality to convert between Fahrenheit and Celsiu= s=20 > reaches that bar of usefulness and I doubt that an RFC proposing those=20 > would pass. >=20 > I don't mean to discourage you from contributing and if you want, I=20 > would be happy to review your implementation even if you decide not to=20 > follow through with an RFC (ping @TimWolla on GitHub), perhaps it will=20 > be useful for any other functionality you might come up with in the fu= ture. >=20 > And of course if you still plan to do the RFC that's also fine. But=20 > someone else will need to grant you the RFC karma, as I do not have th= e=20 > permissions to do so. >=20 > Best regards > Tim D=C3=BCsterhus >=20 Why stop at temperature though. It would (actually) be very useful to ha= ve a standard (built-in) way for units conversion in-general. Not just f= or Celsius to Fahrenheit, but also Kelvin. Hours, minutes, seconds, etc,= as well. DateTime kinda-sorta handles time already -- if a bit clumsily= .=20 =E2=80=94 Rob --40c4deab916e40848711a67967f9167d Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Sat, Feb 8, = 2025, at 15:58, Tim D=C3=BCsterhus wrote:
Hi Sam

On 2/= 8/25 15:30, Sam Lewis wrote:
> they wished PHP had buil= t-in functions for converting temperatures between
> Fa= hrenheit and Celcius, and it seemed like a great small change to learn
> how to contribute to PHP itself. So here I am!

That's great. Adding functions definitely is the b= est way to get one=E2=80=99s 
feet wet with contribut= ing to PHP itself.

That said, PHP=E2=80=99s= standard library is already pretty large and any new 
addition should provide value to a large number of projects, given the=  
amount of work associated with it. A new function m= ight conflict with 
existing userland functions havin= g the same name, it needs to be 
documented (and docu= mentation translated), it needs to be maintained for 
20+ years and of course there's all the overhead of the RFC process.

I'm not sure if functionality to convert betw= een Fahrenheit and Celsius 
reaches that bar of usefu= lness and I doubt that an RFC proposing those 
would = pass.

I don't mean to discourage you from c= ontributing and if you want, I 
would be happy to rev= iew your implementation even if you decide not to 
fo= llow through with an RFC (ping @TimWolla on GitHub), perhaps it will&nbs= p;
be useful for any other functionality you might come up= with in the future.

And of course if you s= till plan to do the RFC that's also fine. But 
someon= e else will need to grant you the RFC karma, as I do not have the <= br>
permissions to do so.

Best re= gards
Tim D=C3=BCsterhus


Why stop at temperature though. It would (actual= ly) be very useful to have a standard (built-in) way for units conversio= n in-general. Not just for Celsius to Fahrenheit, but also Kelvin. Hours= , minutes, seconds, etc, as well. DateTime kinda-sorta handles time alre= ady -- if a bit clumsily. 

=E2=80=94 Rob
--40c4deab916e40848711a67967f9167d--