Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109795 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 94439 invoked from network); 23 Apr 2020 00:35:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Apr 2020 00:35:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CCFA9180510 for ; Wed, 22 Apr 2020 16:07:30 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.64.0.0/10 X-Spam-Virus: No X-Envelope-From: Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2058.outbound.protection.outlook.com [40.92.21.58]) (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 ; Wed, 22 Apr 2020 16:07:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jS/zpYA35cjTd6qSvXe0dZhD5M8zzqXvMsxVR1/lIIQwQdVcG8qOdK0lRJVXlq7RyUoNuuZuwO9HTJx+Ic9L2zwyDQdgIXpZCnVG1y5IBqL29k1iA6SAAbJGzyuhgocW4fldUSRDdKm6W27E97g/yxaD+QhNVD4k5TLc6LYKVtLUhKZxbrJJM6DtyYWDFlXoxKgAsa7YmfLdgMKzgd3FK+GAFlLcu69cDP/pAyhRwYi47Fjnso/QJNr9m6MyW0TRy4Q/UgAcEG1SxopvOtGVfh7+Cqv3PKJURenVYIS2M/AWEEwaNoJG30OdSi4h7YsfVfwxD2d9ozdCGnZMd6MFKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jmu1OWqG3cpU3ey+ZAf3Tbxj3dnE2jeVMwoCYNN5epU=; b=GoOYcFEQJrY3K1X51jaGcT38r036AosYr7Sn1CzFIXUS1TlqoObb7yRhijwaChCISazptqplpUNKw7ypms9lNIyifn8+3JmhoPVyEasoLbNMO2dFaF1CNlVF28385/ZXKQeLwy4V3JapG3Z0ct2zPXZJDTAS2JDzVxVp4OGOSOOzmTlEezhGFITjjMwwChaDWj4eqN7CHnob3JuodxbtytNUAtl3k33680GYAfP0gVFr6563eswDrn+D5I1NkTFdR9jlwW9LPG/iGSnye2tEIfJXmRNCQ/WAJ/M/k9fAhiMeIIj6OAKnUFt03jtSfI3b2lIukeZ3BtNWm3jNdjW3PA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jmu1OWqG3cpU3ey+ZAf3Tbxj3dnE2jeVMwoCYNN5epU=; b=FWl+VfrlXMFCKln7ebx8IKpVuDaVZmnG3taS4xRKlx2W46VipCHCPWJ6j+AuayMviI9Uz7ogSek0/70Rxp05AfA8aNdQngjcWibi4VZ/g4NsQZ7t4jy14x2dohAyNYriKxtv6bFjgA3H0sPgFD7iljwc/Y31OO+oYpYr9+Al34XfXiBQJBjNZz3j2j5Xf1kBER6UXLo56sfUwhi892oz1QEzJ2iiFpc0UBVEVNlOhAx2Qm31sOh0t60NnM9cL6KmUw+NAkgIZH0jI1livl011myj7PqCOoPc1+bz4X4lRzuzIiCVc3p2RJcBPXvPLtuYKiocewGRVt2k4fLmgxS3cw== Received: from MW2NAM12FT065.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::51) by MW2NAM12HT182.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc65::490) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.12; Wed, 22 Apr 2020 23:07:27 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc65::4d) by MW2NAM12FT065.mail.protection.outlook.com (2a01:111:e400:fc65::181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.12 via Frontend Transport; Wed, 22 Apr 2020 23:07:27 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::e553:b74f:bf64:30c5]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::e553:b74f:bf64:30c5%4]) with mapi id 15.20.2921.030; Wed, 22 Apr 2020 23:07:27 +0000 To: Andrea Faulds , "internals@lists.php.net" Thread-Topic: [PHP-DEV] Re: Any interest in a list type? Thread-Index: AQHWGPiK9cTEHeqmBkW/bGMzMy70DKiFwTBG Date: Wed, 22 Apr 2020 23:07:27 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:75716AC1D96D92B27BD3CCAEA6BBB9E3DD4F44C12A560B613056C67EBFC9275C;UpperCasedChecksum:F7C982ABAA42C360DE3238C9B8195BB59458B002B7DAB61EEAD986E8E791E7AE;SizeAsReceived:7163;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [M3+Y+fcdsdr+elj6Vs6tePsm/bVvYFCE] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 48c9a44a-58d9-4037-703e-08d7e711ed04 x-ms-traffictypediagnostic: MW2NAM12HT182: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tFDTFUniN4r2TWH7laV6B5We9yxcKIQ7FrqQjmGfWi4ZE3Ke3+eRRhVHNI3oqLYLVEiv0paoUSMoJpNhZmmajEYrFOCDM5wj17JJlQfjaj118FSN+1gb5BCi6c1XW3igu78+ksnoIErsA+dFHgx685YljaGVxzBofltkTMI1rbZCwI4Q1gRJuZRvZ96qBjgN2d5J5xAZhj+hANgXqEYStgG43J4N84CKmuJO4ULpw/T1KLROFfFdAQawJA3RYr+D x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:0;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR07MB6618.namprd07.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:;DIR:OUT;SFP:1901; x-ms-exchange-antispam-messagedata: oH/CkZHdrcnsU6GL+tD0hsYGaLI9AT2q+dwPUnj2drB7sDAnF5Q8w/M7Nh/QxyxI8pfwsch5M0sNil+bWI5f2wxHRM2T67/DjqffWIqIOhr6poe8TaeIojqkQEM9Z9P7frrQjwGhW4QMYsvUzuDAzQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 48c9a44a-58d9-4037-703e-08d7e711ed04 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2020 23:07:27.1706 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM12HT182 Subject: Re: [PHP-DEV] Re: Any interest in a list type? From: tysonandre775@hotmail.com (tyson andre) Hi Andrea,=0A= =0A= > Since it's pretty simple, I decided to write a proof-of-concept=0A= > implementation of such a check. For simplicity's sake I haven't=0A= > implemented a type declaration right now, just an is_list() function,=0A= > but it could easily be extended to one. The implementation can be found= =0A= > at https://github.com/php/php-src/compare/master...hikari-no-yume:is_list= =0A= =0A= I wrote in a different response to the original email:=0A= =0A= > Working to have a vote on https://github.com/php/php-src/pull/4886 might = be a good first step, and something I was personally interested in seeing i= n 8.0-dev.=0A= =0A= I thought I mentioned that there was a PR that implemented is_list() in ano= ther email in that thread, but it turns out I was mistaken - I just mention= ed the URL. Sorry.=0A= =0A= That PR "Add is_list function" (https://github.com/php/php-src/pull/4886) c= opies the is_list implementation that the JSON extension uses internally fo= r efficient serialization of lists.=0A= =0A= I'm glad to see the interest in support for is_list(), list types, or worki= ng on potential implementations.=0A= =0A= Thanks,=0A= - Tyson=