Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121596 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 5145 invoked from network); 6 Nov 2023 02:08:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Nov 2023 02:08:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8E40F1804B3 for ; Sun, 5 Nov 2023 18:08:22 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 5 Nov 2023 18:08:19 -0800 (PST) Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6cd09663b1cso2605907a34.3 for ; Sun, 05 Nov 2023 18:08:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699236498; x=1699841298; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=2qcEUsSCw0PQcrOmZOPuBJMnBgIpVfatXzcxaX3bOkQ=; b=lPINfdpM5bba/RKeqDxoy5QXE1ghhyKFjHw8nn3PigUOT0GLQVM4HqEDFkBF6iJRoZ 9Qm8pkC+dmS3Z0josh0fA8iKKZter/Whnl4YEuE5BnPXVWGLCDXa9gE5bX4JOtse9MOh l8o7WifBTRyQ2nrnOyCsaw1JX0CJlZREOjdtujForNfMVBdsQBCKrjScYWZVPMJp1U4E gO3tYWp7MO15T8K6rR/8pLursBiXXdOlV3alt5x2gmsFcvuXTaZYT0gVFBq4vG0tUvYc /SrqbC1o1/D9WoOPqXNNkVhjpzH3nXkRevV9wvppbOuhhB6qQm5tYjtv7JdwE2uwCGWU Mb3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699236498; x=1699841298; h=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=2qcEUsSCw0PQcrOmZOPuBJMnBgIpVfatXzcxaX3bOkQ=; b=EkjivWCxtEKm4CL6YSFHMJDo6E+9tY6X8UmdHsC4yeHopAlTdLtc6FSRSm3g8M6x9u U5DWIPWSzKAj6WN5UYPKFthJJRLPM+hAqGSbKYCStgKjCUjlGtwUhO/aHjGE9ok0MbZ/ xP/q4R+nuRJKn6HidQWbexJ8B2AnAdfpOZlnv8OmTmAtKemHl2lLINC7KlsKGiYqZJT2 vnf1OdOkSvebeTfHL2Zge2K+u9D8ZqQfLCArwlrJrqHclPCgthd3W5Z20QbLHGJJr7rW ACdvM7n7n+TDPtIgFDEpV0+vyYK7YnVg7bVW8X9/MvMXMvH5b9gesiNHSOpH/QI4Ff75 hg4w== X-Gm-Message-State: AOJu0Yy+KCUSM/etoEv1yG6ClbgUNmR7OJLqsIVcl0Lp+KlIlitxne6l 6Y5SsRTMhlgGjVOQ+6qOA0epD+S6mw31ThXGIka7HZjA X-Google-Smtp-Source: AGHT+IH7NUvHYEF76KzXjPFit0k1wyz/Fy3w9ryoTsImlBk1b+tvpyTqX2Ewt+DC1wB56BHiuzhYJjfJD0XlacB0ixc= X-Received: by 2002:a05:6830:2703:b0:6b9:ed64:1423 with SMTP id j3-20020a056830270300b006b9ed641423mr30881096otu.2.1699236498275; Sun, 05 Nov 2023 18:08:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 6 Nov 2023 02:08:07 +0000 Message-ID: To: php internals Content-Type: multipart/alternative; boundary="000000000000de801a0609725304" Subject: Re: [PHP-DEV] [Discussion] Variable Type Declaration Before Usage From: davidgebler@gmail.com (David Gebler) --000000000000de801a0609725304 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Nov 5, 2023 at 1:37=E2=80=AFPM Oladoyinbo Vincent wrote: > Hello Internals, > > I was wondering if php could introduce this feature or if any experienced= C > dev here can work on the implementation of this feature. > > I think this is a much bigger issue than bikeshedding over syntax. The idea of typed variables has been discussed a few times in recent years but the roadblocks have been efficiency of any possible implementation, BC in respect of places type hinting can already be used and the overall usefulness / desirability of the feature. It's one of those things that's been filled in reasonably well by third party static analysis tools. Tbh I'd be more interested in an official static analyzer than more type checks at runtime. --000000000000de801a0609725304--