Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126354 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 F2F5B1A00BC for ; Sat, 8 Feb 2025 17:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1739034880; bh=3jhQR1Hah2M+/vTKQvqcRzB3wNjZrR1iZR7Rr7lB/54=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=k/gaSYlfGE09zhDsKHONLqjsJd6UfAydaHskdWbHRtrFi/u3Rbhf7FJEt9isuChha 926mhum8k7Dy25SItUAklsrhZtvSs6fpFGW4G0SjPLE+ZnCIfipluDODLwyuiP7W4s YjpwXgLBDM/HPHX3GUd24eDY50CeTstW7HcK6djNl/oWq9b/755WJKVhzq9pVBXsDj RlHj3oJe+SA43c1FZlwEnt4pHp8WvTcO/ZqfOIiOFdG5hbPY7AHpbucdAs+axFkvYg MBWfmy6srJ4n7txCVmWrPq5PUSHS4V7HkkJw4C1pckzKNGTXuTwS+Nhzy9R6LKGdOy irVTkUCJvZv5g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 35B59180059 for ; Sat, 8 Feb 2025 17:14:39 +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_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (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 17:14:38 +0000 (UTC) Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-e455bf1f4d3so2369456276.2 for ; Sat, 08 Feb 2025 09:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739035043; x=1739639843; 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=3jhQR1Hah2M+/vTKQvqcRzB3wNjZrR1iZR7Rr7lB/54=; b=BffJdcUWSLrSa53kG84ECeT9mS4Dfz9Shq4B6U/F19XbaQ3IWen+k/FOyIPt0LgJwa 36m8aTkGwfb3IauPf3Y/L2qxgho23umc+cPQQm4cJAD2fRSy78fNBiE9FYXZOyjJy8XK VkhesZ4OHitbqOnhPdd8sbQ0t+owtcnHZkRkSucHQGxpX0Undn0+TZXHFhuuEaIb/vq/ 9SLGDnVIAU1MADLNOBNhTWypCVROIHB4ffIdZElnZ4071sjxApIoGOF9HZgulL0ftQJ+ yzYjpKaFRY5s/0N6AGqTacsTptajvy/wegUs11+fElrmZdvCQmkeXMgDOmbXNHBa1iBZ tB6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739035043; x=1739639843; 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=3jhQR1Hah2M+/vTKQvqcRzB3wNjZrR1iZR7Rr7lB/54=; b=MFPx2SVIc21jJB9Uayt5/ER9eH5HSZvftWLSIFTe5Sz0g2sPWdYA2ok2nvZpol1Ksu qkPlXSmfFIX2K8Dqgn3SYePndoJd/P6Ivjo3gPRc0wGOg8Tm3NLzxiz6Uy4Jii7stlJ7 brUqHRSqk3+8+5JamUbgC5LOlX0TQkiJXNscr6nPyPxNvPROA2VKuvpzB1G7qwNBFAPq fCMVs6OZINnDRyQ+7avvBLRl0vT8FHTbxt9UB/ZXqaCghiwOstWDdpzrauXMdtACZToJ C/864/+GYqrZOl8mBY4eAd+dIpsxB4gR51fEF44GYjhYMka4elS2wPN06eHGe4IAdjKb qrVA== X-Forwarded-Encrypted: i=1; AJvYcCWUip85udyedE2dCeByvEPCZO9ESKhuJfqqWlDTuC0RYL7L/QsiWpWbY0nEvzSXPfp0RfTPHoHvYZo=@lists.php.net X-Gm-Message-State: AOJu0YxgU4dWjLhBpj2t6ASQTpvW0Uw+iSuSU8F8vg9m8g9YBq5ywldh PKVCmny3HBfZmGei/2fOtZFox9MpoQ+VYG+bJqQ8BkMTl6z2DMLswo0YxJgyI3Bz6CxbYpq/MeY v+zM6Nzl2TfL6Yg56msYPyfh31Mo= X-Gm-Gg: ASbGncvxo9767a6Qb8uNIsKfrKC8LWbVUCN9AtGa/LKxqrnoArlzk+yttYqzzCrhRdK R6Ro8dVNYJCsy6RANGLPfWDUoE0Q1qorRR6UWcwoW9RmuYcsKEfYQuI+b56Z2ebIKMqxDl25q7x CmXbezJPQ0qp6F/4xQtFTIpksT2jbljQ== X-Google-Smtp-Source: AGHT+IHTNM9qnI6ZQakBi68jSH1ZpXkdKzfoGetoGgJbPdYV8WRM7myf5PqMOrT8DMB0p2RRDayNGmI6+SbvtM18XYs= X-Received: by 2002:a05:690c:74c3:b0:6f6:cd43:5468 with SMTP id 00721157ae682-6f9b2a2165amr70438157b3.33.1739035042633; Sat, 08 Feb 2025 09:17:22 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <8053193b-0637-4db4-825d-56e7746111dd@bastelstu.be> In-Reply-To: Date: Sat, 8 Feb 2025 12:16:46 -0500 X-Gm-Features: AWEUYZkgY8IxrXRoNgJ3eSNswPr7nJaxQ3A1WQg6IbJdWpPie_EbvtF_mwEsyok Message-ID: Subject: Re: [PHP-DEV] Introduction - Sam Lewis To: Rob Landers Cc: =?UTF-8?Q?Tim_D=C3=BCsterhus?= , internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000f7df72062da4a5c6" From: sam.lewis0602@gmail.com (Sam Lewis) --000000000000f7df72062da4a5c6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks all for sharing your thoughts! I would be happy to review your implementation even if you decide not to > follow through with an RFC (ping @TimWolla on GitHub) I'll definitely take you up on this, thank you. Why stop at temperature though That's fair, maybe that will increase the value proposition of the RFC enough to be worth considering more seriously. Sam On Sat, Feb 8, 2025 at 10:05=E2=80=AFAM Rob Landers wro= te: > 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 built-in functions for converting temperatures > between > > Fahrenheit and Celcius, and it seemed like a great small change to lear= n > > how to contribute to PHP itself. So here I am! > > That's great. Adding functions definitely is the best way to get one=E2= =80=99s > feet wet with contributing 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 might conflict with > existing userland functions having the same name, it needs to be > documented (and documentation 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 between Fahrenheit and Celsius > reaches that bar of usefulness and I doubt that an RFC proposing those > would pass. > > I don't mean to discourage you from contributing and if you want, I > would be happy to review your implementation even if you decide not to > follow through with an RFC (ping @TimWolla on GitHub), perhaps it will > be useful for any other functionality you might come up with in the futur= e. > > And of course if you still plan to do the RFC that's also fine. But > someone else will need to grant you the RFC karma, as I do not have the > permissions to do so. > > Best regards > Tim D=C3=BCsterhus > > > Why stop at temperature though. It would (actually) be very useful to hav= e > a standard (built-in) way for units conversion in-general. Not just for > Celsius to Fahrenheit, but also Kelvin. Hours, minutes, seconds, etc, as > well. DateTime kinda-sorta handles time already -- if a bit clumsily. > > =E2=80=94 Rob > --000000000000f7df72062da4a5c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks all for sharing your thoughts!

<= /div>
I would be happy to = review your implementation even if you decide not to follow through with an= RFC (ping @TimWolla on GitHub)
I'll definitely take y= ou up on this, thank you.

Why stop at temperature though
That&#= 39;s fair, maybe that will increase the value proposition of the RFC enough= to be worth considering more seriously.

Sam<= br>

On Sat, Feb 8, 2025 at 10:05=E2=80=AFAM Rob = Landers <rob@bottled.codes> wrote:
=
On Sat, Feb 8, 2025, at 15:58, Tim D=C3=BCsterhus wrote:
Hi Sam
<= div>
On 2/8/25 15:30, Sam Lewis wrote:
> the= y wished PHP had built-in functions for converting temperatures between
=
> Fahrenheit and Celcius, and it seemed like a great small ch= ange to learn
> how to contribute to PHP itself. So here I= am!

That's great. Adding functions defini= tely is the best way to get one=E2=80=99s=C2=A0
feet wet with= contributing to PHP itself.

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

I'm not sure if functionality to convert between Fahre= nheit and Celsius=C2=A0
reaches that bar of usefulness and I = doubt that an RFC proposing those=C2=A0
would pass.
=

I don't mean to discourage you from contributing an= d if you want, I=C2=A0
would be happy to review your implemen= tation even if you decide not to=C2=A0
follow through with an= RFC (ping @TimWolla on GitHub), perhaps it will=C2=A0
be use= ful for any other functionality you might come up with in the future.

And of course if you still plan to do the RFC that&= #39;s also fine. But=C2=A0
someone else will need to grant yo= u the RFC karma, as I do not have the=C2=A0
permissions to do= so.

Best regards
Tim D=C3=BCste= rhus


Why stop at t= emperature though. It would (actually) be very useful to have a standard (b= uilt-in) way for units conversion in-general. Not just for Celsius to Fahre= nheit, but also Kelvin. Hours, minutes, seconds, etc, as well. DateTime kin= da-sorta handles time already -- if a bit clumsily.=C2=A0

=E2=80=94 Rob
--000000000000f7df72062da4a5c6--