Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121381 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36540 invoked from network); 18 Oct 2023 12:23:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Oct 2023 12:23:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 73A941804BC for ; Wed, 18 Oct 2023 05:23:56 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_20,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-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 ; Wed, 18 Oct 2023 05:23:56 -0700 (PDT) Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-9b96c3b4be4so1062682466b.1 for ; Wed, 18 Oct 2023 05:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697631834; x=1698236634; darn=lists.php.net; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=xeBqX18dT2yesNzXJepbRikQ26LgM5BAFL/UJqVZack=; b=USAg7wf/47n6Pw3W41hxh2MCr2gFcwriQCoQ/MjRNpCG7sZSy4RuvGUp85LJPYvLbd M1Hi4NAq/4H1gV2TK2xcYWPkZ2F2BrgU+AUIYslO0zmoJFmgkd4cdvfB2CuXZyEVZam4 WXe++U6qM3OfcEz/S7f07zaTKAiqUXxAl/naNTp3s+21i+rZPV77i/R2wSdYuuPDfEFy 14AtPvLvw0DLnFxqVQte2m4rp59Sw2JHLlp8rPVWhyEo0WGA52ArrT2PzMfCG6jFq+LM 2GLsQPfWUKN/nHHKKgqKfsn2rToByuF5AiUMy5fT8SEsjyRly1yGUW400IfVxW7Ahw2K +3fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697631834; x=1698236634; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:to:from:date:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xeBqX18dT2yesNzXJepbRikQ26LgM5BAFL/UJqVZack=; b=H54hbn0e6NhGGabw84OFgm1bsztL8NOCtsfNbHHU543nGI1yl6Rf136VWxOBvcXWB2 q+CLl4GxxrNZAHncgWKd4J/U6/UBjVKBljkGNfUo6eHK2p9REWC2TgdH6B0To0gBJUtR Jjj2I+AcFxTCMSzgXeuisMMgguVa3Ff//IKWJU1GtkLK4lJ3wQEfti2RpUfDyo++6749 z0wR5MtRkp1b+xQARTeewjDYwrmtJxovFY/EPFU++kErLOLtZtiSBGyZo+oi32d7Khqt 029mNvNpoDTAHYmYSNwku/AR94evi8rBYm4Qtlf9RzI/PwRUeCg37ccu3sVVaqIWeykI qMyw== X-Gm-Message-State: AOJu0Yz3JRDhMRhaBR19Zk+zIZCDh5+uA2i/Vfp5W8+fjwByERqj6IZx lLmnMjyXqY8yleD2GzEFyYB9Cy2fMTM= X-Google-Smtp-Source: AGHT+IEiE0O0ItWp+q/yADGabPNx1uuyOO2LwwY75Rr+3dHhRiCUicMvjUtFL4v6Yo2pCIwNf1QMnA== X-Received: by 2002:a17:906:ef08:b0:9ba:65e:7529 with SMTP id f8-20020a170906ef0800b009ba065e7529mr3632800ejs.68.1697631833952; Wed, 18 Oct 2023 05:23:53 -0700 (PDT) Received: from [127.0.0.1] (92.40.197.235.threembb.co.uk. [92.40.197.235]) by smtp.gmail.com with ESMTPSA id jt24-20020a170906dfd800b009b9977867fbsm1569493ejc.109.2023.10.18.05.23.52 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Oct 2023 05:23:53 -0700 (PDT) Date: Wed, 18 Oct 2023 13:23:24 +0100 To: PHP Internals User-Agent: K-9 Mail for Android In-Reply-To: References: <9d5388fa-a5a5-4fa5-81ff-16f6670f80b6@gmail.com> Message-ID: <1BB71CAC-F493-4204-BDBF-3B76D4EF7028@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----JE9W7Z5R9HGONEEQ22ER2N9XYEVYLD Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Previous discussions about generics syntax only? From: rowan.collins@gmail.com (Rowan Tommins) ------JE9W7Z5R9HGONEEQ22ER2N9XYEVYLD Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 18 October 2023 08:13:57 BST, "Olle H=C3=A4rstedt" wrote: > >Not sure readability is improved here compared to existing @template >annotations=2E ;) That's because readability isn't the problem I was suggesting it would sol= ve=2E=20 As with attributes in general, the aim would be to have the core language = validate the *syntax*, but libraries supply the *semantics*=2E=20 Such a feature would also allow the set of attributes to be standardised i= n core - although I don't think I agree that "standardised on php-internals= " is automatically better than "standardised by a forum of people who write= static analysers"=2E I do take the point that if we ever did solve the problems of full impleme= ntation, e=2Eg=2E by shipping a mandatory static analyser (aka compile-time= checks), we'd have to change syntax again=2E For me, that does not outweig= h the cost of "type declarations can no longer be trusted"=2E Regards, --=20 Rowan Tommins [IMSoP] ------JE9W7Z5R9HGONEEQ22ER2N9XYEVYLD--