Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125391 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 435CD1A00BD for ; Mon, 2 Sep 2024 17:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1725298669; bh=gOi/ZNHdXtbYzzCyGBYwAmZwWM1s/47HQLlWi/NRYGc=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=mwNoa3TkrQwQA9p+9J81m2Y7fH7zpiH5CcCt6bIavUJdHqbOZeeWxaF+UKX3AxCkv 573HmUcl6xht88iSQgiTrph9ZQsVVTLhk8wEobMGzj/gCzgIrZC8ZjlFTL8KAPU971 DwxOeZc9zD6clrHZkhrc3KsjJyKazGIcm69jIslan1T+fjgJKPbP2FxH0V6a4n2aU7 DyifjiQNB8aL2zoAE2+hfbCATHzWEpfvnwwnIbHvCEREyAkJJg+CZNIC9dtNUS5GTC GyoMlre5QaFGY/zA2CW6mnc53vpSh5yOPAFkuGzKDEMdxho6F1fVxUL49DKOosB5wV m0R3QeoOG+KzA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F2105180087 for ; Mon, 2 Sep 2024 17:37:48 +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.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DMARC_MISSING,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (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 ; Mon, 2 Sep 2024 17:37:48 +0000 (UTC) Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-e1a989bd17aso2016473276.1 for ; Mon, 02 Sep 2024 10:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20230601.gappssmtp.com; s=20230601; t=1725298551; x=1725903351; darn=lists.php.net; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=GBAy1AJiKK4NJgNn9dHW1zWtQzSvwG+zEX9Z2awC5sk=; b=AyRUaI2wsgWudtti4YxWVfDALvPIE2o0dcpAyi46e90TTQWWax5R5yklTjrJW3Dq9r EAeehSZW8GEtgwIAOZFl4/zn/ciKookCCB44o2AgR0Ar/JdDFVcutqNwrC/xoOCN2sD4 EEd/457pHGTPvviP72Uy+FMXeHEvIpErxJGA3kX5RZxl4g85fkFDgrV6AezJxX6dTg7r rpUeJ9Idg62FcmLdma7wj01tCE9psktTRxiA2EYuew9OPkw4COiQZsRaVaDns6fb9P7G wnaOFiu++6Yb45sncmvL9imhzh+JA59V6uQnbbx2Vgho2QPkHYe+NSYbecjqT1RraWE8 3yIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725298551; x=1725903351; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GBAy1AJiKK4NJgNn9dHW1zWtQzSvwG+zEX9Z2awC5sk=; b=NRZoDr8h1ELmsKFI0nPZjNLlXrf2U6VT20/+bGtU+9aantAL/W/b8moUouDiZ7s2CS iVzEFnHM3tYUsJDo2NXqxRboKZ702+1ZbPMdVMPM+jBniv/3cFqLh0dBTUyWt+GlUIqW ueqNdCFJKlQd+Z7wekmQ0htPcYgYUUgFvD50C6aZbKjZQMWEjiSUTabakmo6qGOI/WKH KvyY7L5oIwiXwIbfy47TkvdYEbXLDWtkxOU/8X8RFHmcUbgp4pcJ5Ro1QNQv8bsdFFy4 D5eAncUvA/j7IKGiP1JuET/vI2FS3ixI3HfupzkxAAJyxo4C41ExesxP9JXFfJ26h11i YxYQ== X-Forwarded-Encrypted: i=1; AJvYcCWUhd4oh3iXI6SvaQ9qyvuoyeOEmdRjaq119/yFcKYWfPuN+yEuITSCQUDdQnxRO047/GkONMHb9+I=@lists.php.net X-Gm-Message-State: AOJu0YyPwXWLNd/RhMCL+ZzMz4Z5o5MAyzXxIwNFINvlDrKGaOT/Df/E V3VlNKMihc9Trq/BnMpet9+Di+bRxHHjoRVL08d7Zp6heZrNh+0qkh6TvUltIjU= X-Google-Smtp-Source: AGHT+IHxU/oav4Jer5FJzAIml+7wKvV/D+toaGmMdZjhDVldUntNTDD3BVSprlAAW+6S7oB3+l/JyA== X-Received: by 2002:a25:a029:0:b0:e1a:8ceb:49bb with SMTP id 3f1490d57ef6-e1a8ceb4c83mr8114572276.44.1725298550826; Mon, 02 Sep 2024 10:35:50 -0700 (PDT) Received: from smtpclient.apple (c-98-252-216-111.hsd1.ga.comcast.net. [98.252.216.111]) by smtp.gmail.com with ESMTPSA id 3f1490d57ef6-e1a9be379bdsm878130276.11.2024.09.02.10.35.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Sep 2024 10:35:49 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_508AA5DB-0BD5-41D6-AE29-440A4F1B7951" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: [PHP-DEV] Pre-RFC Discussion: Support for String Literals as Object Properties and Named Parameters in PHP Date: Mon, 2 Sep 2024 13:35:48 -0400 In-Reply-To: <480c0005-f495-4b0d-bd5d-5322077e466d@gmx.de> Cc: Hammed Ajao , internals@lists.php.net To: "Christoph M. Becker" References: <1C1BB102-EE71-49A6-A057-C727A39FC38F@newclarity.net> <480c0005-f495-4b0d-bd5d-5322077e466d@gmx.de> X-Mailer: Apple Mail (2.3696.120.41.1.10) From: mike@newclarity.net (Mike Schinkel) --Apple-Mail=_508AA5DB-0BD5-41D6-AE29-440A4F1B7951 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Sep 2, 2024, at 12:42 PM, Christoph M. Becker = wrote: >=20 > On 02.09.2024 at 16:51, Mike Schinkel wrote: >=20 >> Generally I am one who welcomes new feature ideas, but I fear that = string literals as object properties would break a valuable assumption = that all properties must be a valid identifier. Without that assumption = I fear many things that would become more complex. >=20 > Is that so? See . Consider me corrected. I seem to now remember once knowing this was possible since you point it = out. I think my subconscious must have caused me to repress that memory = given the tragedy of it when I read Hammad's proposal. =C2=AF\_(=E3=83=84)= _/=C2=AF >> So I am sympathetic to the desire to improve the language. However I = fear this specific change would create more pain than pleasure. Better = IMO to look for less disruptive solutions to achieve the same goals. For = example, if the Enum+Attributes approach meets your needs aside from = having too much boilerplate, maybe we could enhance PHP to have less of = that boilerplate? >=20 > ACK Can you elaborate on what 'ACK' means in this context? -Mike --Apple-Mail=_508AA5DB-0BD5-41D6-AE29-440A4F1B7951 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On = Sep 2, 2024, at 12:42 PM, Christoph M. Becker <cmbecker69@gmx.de> = wrote:

On 02.09.2024 at 16:51, Mike Schinkel wrote:

Generally I am one who = welcomes new feature ideas, but I fear that string literals as object = properties would break a valuable assumption that all properties must be = a valid identifier. Without that assumption I fear many things that = would become more complex.

Is = that so?  See <https://3v4l.org/bZTFi>.

Consider me corrected.

I seem to now remember once knowing this was = possible since you point it out. I think my subconscious must have = caused me to repress that memory given the tragedy of it when I read = Hammad's proposal. =C2=AF\_(=E3=83=84)_/=C2=AF

So I am sympathetic to = the desire to improve the language. However I fear this specific change = would create more pain than pleasure. Better IMO to look for less = disruptive solutions to achieve the same goals. For example, if the = Enum+Attributes approach meets your needs aside from having too much = boilerplate, maybe we could enhance PHP to have less of that = boilerplate?

ACK

Can = you elaborate on what 'ACK' means in this context?

-Mike

= --Apple-Mail=_508AA5DB-0BD5-41D6-AE29-440A4F1B7951--