Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108183 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12268 invoked from network); 17 Jan 2020 19:00:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jan 2020 19:00:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 23403180561 for ; Fri, 17 Jan 2020 09:08:41 -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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS11403 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 17 Jan 2020 09:08:40 -0800 (PST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id AE92122023 for ; Fri, 17 Jan 2020 12:08:39 -0500 (EST) Received: from imap26 ([10.202.2.76]) by compute7.internal (MEProxy); Fri, 17 Jan 2020 12:08:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=FCIERF c49fHRYhGk734IcmtDOdl6cxggKFCrC304iFQ=; b=TngbqhLnyZPqkbDG7fBHnv ZSR1RdZhY8pKLuXNWxJhJmx1eLZaiAuUXj9captjGkDJF9PbGi8w6STcWEDUIneU n3giv/jbSaApNuCUhDio2WT7QbRgvz/kK9zu6gYFthrxuPNpqNPapU0uD1XIyQve 5ioflUQEpXYZYT3FArXQIOwKXYKD+NHI1m3qJOEigmUMLOMWEagYj2ATTB/cIHmT 1GXgzDaguMpf5HGNB3WmjgVeUNrusAmD9j+iaIV8I8YbU+FlG9R46+Ufpxpv1Crd lftT2RJQNjgHMhz1OzqhkDJuzVNB1C3U4h8+PtNPkpub7WgtSjDY3/a5mNcOFa0Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrtdekgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuffhomhgrihhnpedvgegurgihshhinhguvggtvghmsggvrhdrnhgvthenucfrrghr rghmpehmrghilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmne cuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7C2A014200A2; Fri, 17 Jan 2020 12:08:39 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-754-g09d1619-fmstable-20200113v1 Mime-Version: 1.0 Message-ID: <611c8e24-fa81-43fd-abba-2a9c311b0a81@www.fastmail.com> In-Reply-To: References: Date: Fri, 17 Jan 2020 11:08:19 -0600 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] Typed array properties V2 From: larry@garfieldtech.com ("Larry Garfield") On Fri, Jan 17, 2020, at 7:53 AM, Robert Hickman wrote: > > So essentially we are talking about generics. I think it's the best time to > > do so... Maybe our wishes come true soon? ;) > > > > Given that the general trend is towards making PHP more statically > typed and very java/C# like, why not just ditch PHP and use one of the > aforementioned languages? Because those languages suck for scripted use. For shared-nothing scripting, PHP beats the pants off of them. That doesn't mean we can't continue PHP's fine tradition of stealing good ideas liberally from every language we can find. We can and should do so. (Whether we adopt Generics in the Java.C#/C++ style or pull from some other language is a separate debate.) cf: https://24daysindecember.net/2019/12/06/growing-gradually-in-php/ --Larry Garfield