Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121758 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60544 invoked from network); 22 Nov 2023 15:27:34 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Nov 2023 15:27:34 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6A11B18003F for ; Wed, 22 Nov 2023 07:27:37 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, 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-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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, 22 Nov 2023 07:27:36 -0800 (PST) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-548d4fc9579so1923454a12.1 for ; Wed, 22 Nov 2023 07:27:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700666852; x=1701271652; darn=lists.php.net; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ybXsd+nHowyolF/Pn+/ngpJjBDvfSnHQx/iRdf8ErGU=; b=lTkPZJrajRnlAaXYU919XuNP4Vle+s63VdEi6TGlPEu7H1ioo/XAwpBWgxUQ4shbPw L1NN3kgH5mRgHcJbbOxi5GEJZubWDq9t19017XGI4q3xnClGpKpB1KuXhSjPUbG3arg8 ZFPY3ZWVnhK1XS5rV3KeM9Y3t0AKd/sHGSDH4mz04MhvAViOKCBrImsdC317ZmfZHDcv Pdv7UNaz32ZkPvv7S1HOvqyt4B4V+ZvdDX4dU5amByAhvTncWShnjYWIIbZvXiE7jJUP P4pjoWaiosGg0Rm4DFbcuAZtICrZdXxOZl4CUAjcGUUxuhZ+JHcsTIwAaYEOe0XcM6dJ cNkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700666852; x=1701271652; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ybXsd+nHowyolF/Pn+/ngpJjBDvfSnHQx/iRdf8ErGU=; b=H1NMuDqy8gZv2NH/AHJzt5HrX+i3fDcxoBILeMT1e/UijqfLQQrLhtqdfmPoPMovla AEgE7kv6wzEaqUjzQPUEkbUL/7R/XkHxa/JXE5qX+a2nzLiWB7XNyd5Iwvx5MThnRd9H CNlo0c0jV/8cFJ9ftnokBNZH1urAPpFvK34Uvr9+iyqQF03I67jvXfxQ7F2QCDahN84k TBDIsKRphWDl06Ee0QwFjIN0JSdpSlkyHc4HqHy/TrqcuJqfkMhdluo1sIUVCG014UfR m8S2TugUFfEG1LvfnnotjPloed6EBWAjEFTUTlkNcnQu/QpJ6DMrFZXxGPCHOGgyDCTH NdUw== X-Gm-Message-State: AOJu0Yxzs+bcpDYRldjacnqz2mfG2Fu97mnuxooFNmhRunn6zv5I5s13 pF5ELHRTiyjR9hmOG2Nx43c= X-Google-Smtp-Source: AGHT+IHkKpgYGG0tjdvts/e6fjyvL4Hzfv8NMOoinUwKLfCBhmZx6KeE+0QoB3+Bj3Scw4PlUT0tGA== X-Received: by 2002:a05:6402:1a54:b0:540:911b:72b1 with SMTP id bf20-20020a0564021a5400b00540911b72b1mr2430838edb.7.1700666851477; Wed, 22 Nov 2023 07:27:31 -0800 (PST) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id b13-20020a056402138d00b0053e5f67d637sm6196264edv.9.2023.11.22.07.27.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2023 07:27:31 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) In-Reply-To: <054a1e3e-f860-4596-83a9-9f557c6fd316@gmail.com> Date: Wed, 22 Nov 2023 16:27:19 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <3B56EC97-9D45-4302-B555-367F43C288EC@gmail.com> References: <2b4591c1-f999-49b5-8061-67db816aa0da@gmail.com> <054a1e3e-f860-4596-83a9-9f557c6fd316@gmail.com> To: Rowan Tommins X-Mailer: Apple Mail (2.3731.700.6) Subject: Re: [PHP-DEV] [RFC][Discussion] Harmonise "untyped" and "typed" properties From: claude.pache@gmail.com (Claude Pache) > Le 21 nov. 2023 =C3=A0 00:08, Rowan Tommins = a =C3=A9crit : >=20 > I've revised the RFC; it now proposes to keep the implicit "=3D null" = for untyped properties, although I'm still interested in suggestions for = other strategies around that.=20 Hi, If you really want untyped property not being implicitly initialised to = =E2=80=9Cnull=E2=80=9D in the long term, here is my suggestion: 1. In 8.next, deprecate untyped property without initialiser, suggesting = to add an explicit =E2=80=9C=3D null=E2=80=9D (one deprecation notice = per class definition containing at least one untyped property without = initialiser); 2. In 9.0, an untyped property without initialiser becomes a syntax = error; 3. Later, reintroduce untyped property without initialiser with the new = semantics. =E2=80=94Claude