Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123673 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 129191A009C for ; Wed, 19 Jun 2024 09:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718790018; bh=8Zh+v1tJp8JnPmgT1Fgo46XWPbuiBegVampEhYBmhqY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Kz4kRj0gN/BQYSqwJ0s8vmrVa4VWEqOWNdD2F0SoLojyIsKyXG+BThIQGmiAkYoPK qY83fR4qg78YEixnF4unjazZp3mouNTV916LZgVio73LxlGr6XHzyIlKlx3/8rnwwD tOHtxLQELXLWGxuu0nLY+xdVBg93ZkxGzc9tTM8x+SBzObmiWaN1CVsfC7XEyk6ENI IOwGx++qRQh0yAA/EAvb7JzpUVZ3ru8+jL1I4s3fyDCxxQPbcsPoWMO2OwlJv8Ncpa b6GzSqkpDPMBN7wIAq9RWLvGRbVXLMA5Jn83wSVL9E1jl4Kes00obNKd4v0DX7CPz/ VOKa3QHD6JE1g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7F3C61805D9 for ; Wed, 19 Jun 2024 09:40:17 +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_H3,RCVD_IN_MSPIKE_WL, 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-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) (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 ; Wed, 19 Jun 2024 09:40:17 +0000 (UTC) Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-24c9f630e51so3158512fac.1 for ; Wed, 19 Jun 2024 02:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718789943; x=1719394743; 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=8Zh+v1tJp8JnPmgT1Fgo46XWPbuiBegVampEhYBmhqY=; b=OwvVyc0JMZYFhQgnH+3K9sJuyo4dhNyhv3UIjt6sUbZYA9k71tuZA/Q7V+sHv/Wm45 4tCvoFHenPq+3EH59/MVyHuUDrdc0Dsv0culrErXriD6bbigiLs00+ZonVU5RSlpvOYk x1HDrRfTlWEHi1vs3xNNPQNAkHom+Zhg16KASCPJ5BiO3JUvZ5Rx7C51bdYKoQ9Mgtx2 WHnEfMFqOeHUkub3r7lpoZWWVD9jSNwjR0DIoBE9bO+ntZYQeyWzzy3dDuBulkaES9HQ VhR8bO5d/uJXyaTIdMjDNh4g5Gmzfr2rRt46Fmg1ai+E+0230p2MxKJgdsUNHQul8key O6/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718789943; x=1719394743; 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=8Zh+v1tJp8JnPmgT1Fgo46XWPbuiBegVampEhYBmhqY=; b=Q5Ajn+uoNv6fwoBoqFQVpe97cRL5Ex675TYp0LPWCY6+IwvQeEQ+MHEHxmEeNTQfDO Bl+UgjJVws7MSXUdQ9mNKJ46lnu0EyMzooy1/9vQbzjPCfMYhdFxfwZbKJ3DbLDH/BM0 wc/fovvJvQG4X0IjkfHzMgxaFH2GXmaqMP+iAxYRGOBB3ss2ia+NwjI5tbuUkn/ge1mh Ds+FtDtgA45zSQjiK2pR5YuwbEH+NaOYe4KVEdIJYneyRBbltQLdM15G03jXYWYReIls TOKVWklv7alkQEeonyGLgmQSK0OGfhOVXc/dLMxt3A1YHrJPbrgjCiCKXlN++rVEdk+v pG8Q== X-Gm-Message-State: AOJu0Yx4yBMxZ8kooB3CpBkgqTgT0wEawb7mTaG3HXMb597nsGbkIaH+ qMczlHikl8vNZ1jDofLUYM1PQxIQdFmCvnCHVii+YdTl30SPxChniLrxqHkZ/AlTlT14OmSRozR b/ERtgr/jXD7d5700d19lFg+kUI8= X-Google-Smtp-Source: AGHT+IGEfZ246jDRXrHS40SCzATVeT6YVF0XAkbTJd3sGoMae5YaCPl703+rm2PjpkG74POOWw8kWPYHVfZxL5je/k0= X-Received: by 2002:a05:6870:56a6:b0:254:e89e:fc1d with SMTP id 586e51a60fabf-25c94d70a57mr2272063fac.51.1718789943192; Wed, 19 Jun 2024 02:39:03 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 19 Jun 2024 10:38:51 +0100 Message-ID: Subject: Re: [PHP-DEV] Renaming "strict types" to "scalar type coercion" To: Robert Landers Cc: internals Content-Type: multipart/alternative; boundary="00000000000001f2af061b3af8be" From: davidgebler@gmail.com (David Gebler) --00000000000001f2af061b3af8be Content-Type: text/plain; charset="UTF-8" On Wed, 19 Jun 2024, 09:31 Robert Landers, wrote: > > The problem isn't so much this, but in that it has become a dogma to > "have working types" and trying to explain why they do or do not > need/want it in the current context becomes a hopeless argument > because you are attacking their world-view instead of having an > academic argument > If the feature was an RFC being introduced today and you were suggesting using a better, more descriptive name than strict_types I'd agree. But it is what it is, it's already in the language, it's already very widely used and changing the name now won't solve any problem, to whatever extent that problem exists (which I honestly don't think is very big), of there being a cohort of users who rigidly stick to using this declare because they've been told they should always do so, or because they have a dogmatic opinion about how PHP's type system should work in their ideal of the language. Both those groups would continue to use the directive everywhere, regardless of what it was called. And it's their code, their right. No one is under any obligation to engage in an academic argument to justify design decisions in code they own. -Dave > --00000000000001f2af061b3af8be Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, 19 Jun 2024, 09:31 Robert Landers, <landers.r= obert@gmail.com> wrote:

The problem isn't so much this, but in that it has become a dogma to "have working types" and trying to explain why they do or do not<= br> need/want it in the current context becomes a hopeless argument
because you are attacking their world-view instead of having an
academic argument

<= div dir=3D"auto">If the feature was an RFC being introduced today and you w= ere suggesting using a better, more descriptive name than strict_types I= 9;d agree.

But it is wha= t it is, it's already in the language, it's already very widely use= d and changing the name now won't solve any problem, to whatever extent= that problem exists (which I honestly don't think is very big), of the= re being a cohort of users who rigidly stick to using this declare because = they've been told they should always do so, or because they have a dogm= atic opinion about how PHP's type system should work in their ideal of = the language.

Both those= groups would continue to use the directive everywhere, regardless of what = it was called. And it's their code, their right. No one is under any ob= ligation to engage in an academic argument to justify design decisions in c= ode they own.

-Dave