Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109094 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 22289 invoked from network); 17 Mar 2020 04:58:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Mar 2020 04:58:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 73DFE1804E2 for ; Mon, 16 Mar 2020 20:20:38 -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,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 NAM02-BL2-obe.outbound.protection.outlook.com (mail-oln040092003105.outbound.protection.outlook.com [40.92.3.105]) (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 ; Mon, 16 Mar 2020 20:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RvpeB3V7HTyBMPVjFFjAB9O/eD+s4mPJg+c/DLhVVcfdMljJFI5fvl5IarfLUIqmX5201H5hIFEH4M1lug5p4VhCR9WwVSvDDbLTbVbevPZTEhtaFnEQHy5avaUg3vb3F2YI04NCPMGPLvTluq7quWuOKdKkyoyPdjxl1zHraK/S8Wedzj2apoXzUQofgevFIltJVQzt6QAUwdTho2qRgw4NjQESUwUvPY8CtmL373Aqo6pManaBQu5UF2GToT7num3A5QWW0rIL104BnjWHlWgm3Cyg+f/d9v/Xp0KYvtZq493qtVG467Toy7c/lR/2vR1Agi9xT74rj7RcSJyDVQ== 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=7d5rfeFClHV2k4VndTFTMhZjEfapOQE8Mi4Zl/zq6h4=; b=du1Bdzgl2c4qQaf9W5YnbXKR/yoIXw3Cn6aJkzxfcBjksaI4EfmZFKyxzbzp/nl4DO6i8/StU8nIueNN0XEwrWittoLBkBRKlOx2I5lEbNjLkweSgB6PFUvtU73kkb6GZ3ddSFPJ0jzauB3uD9ALhrRpF33KT9eEwuL4Y1y2EKNYIXtXjVkRX2nZ/L/I5ZV9xBbYFL3Lh8JkR4fxp9A7EDASz2V/hmhW3IEfspPOauCsSOlGh53qM+Oo8B3WGVgIsMFEA5TuWE5qKVMAeSU56U6Q5NaDuSfQ4NE5QtQUJ/EIgfQUfQsncWoslK2bSCkbP47jy1MjkmO7JFrd3owfPg== 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=7d5rfeFClHV2k4VndTFTMhZjEfapOQE8Mi4Zl/zq6h4=; b=lINiRfToIEOgV9YjqraqNn9MGk2SZ9l03MhwrBwfsP5KG/T8ROZDowqoXt8ugYtDV3BCGGA7+9mlrkD3GLFz2nF5h5wed10t6W0j4Km3o/vphpMT9/TSguuqeFfHb6ZmbrkMuLBhJlKpc76w6nVU0VIhtoktrYK0yugMeCPXXSwFw42hnwhQetCLfsNN1ZvZAcbqBbNydYS2P9ONOxXoFUoK/64b35r5TIcsDLTLxFcSm8ccE1Ruf3W10je+2dKbfjYgSDNosdvZEGzysng743AahxcRYPCvUYbX7j6TZ5HIjIYbG5zD6wfsYLQTDD9AaF652Zjg4/AC25+QEwF5mg== Received: from BL2NAM02FT033.eop-nam02.prod.protection.outlook.com (10.152.76.53) by BL2NAM02HT135.eop-nam02.prod.protection.outlook.com (10.152.77.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Tue, 17 Mar 2020 03:20:35 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com (10.152.76.57) by BL2NAM02FT033.mail.protection.outlook.com (10.152.77.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Tue, 17 Mar 2020 03:20:35 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::1133:bcac:caf1:d588]) by DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::1133:bcac:caf1:d588%3]) with mapi id 15.20.2814.021; Tue, 17 Mar 2020 03:20:35 +0000 To: =?iso-8859-1?Q?Terje_Sletteb=F8?= , "internals@lists.php.net" Thread-Topic: [PHP-DEV] RFC: Interest in function autoloading? Thread-Index: AQHV+/OTwLPAfHknLUuVRqVr2PhWZahMHDoI Date: Tue, 17 Mar 2020 03:20:35 +0000 Message-ID: References: <479ea7da1e8dc8d7ca130da9ac7b@news.php.net> In-Reply-To: <479ea7da1e8dc8d7ca130da9ac7b@news.php.net> Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:E7E9F2C56878947FD01480757D9DE211F4F182049F3B758599C974D6897ACB57;UpperCasedChecksum:CD1BD6CF4A3DE16512C378F0704874C0C1001FEBA89603AE88BEAA6326E336B0;SizeAsReceived:7140;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [wYWGzmK31oxpZdVxan40TiQ4nJwKtqBbGMtHkaOGA35diuzgR2wTKlgfOE+t7CNf] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 1092e9fb-f63a-4e59-2424-08d7ca222865 x-ms-traffictypediagnostic: BL2NAM02HT135: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3LtyPlrCpWS+o+zslJrA7SUYSSp5GLo0ULo4yekUkT8lwVHqT7tNGQ0u3z8MvSR+JERNFsqxGuoQPgLYgaPHAT3Ho5vHggINL4DbvZPckD0nTNrJE7CWfoiwOd39Zn0S6IGtiXD3qqCGO6s14TLDe65CeXFTOOvAo5KSprF5kCQD+ChQyaM5PB/7RKoa0teeytpN7F81RqroK9Acvvb5L7p7mOWBM1nKh6wp/1fKI4A= x-ms-exchange-antispam-messagedata: 6krqJjxSHVs3kRoewYu3z7lVjCNS1fh5whe3XGl3fNFXwxOcu+DJKA5ABWyM2YlXaFHVv1iBoDWShhbJvCk2ZamKhIUubTbeLzgUeQvjsYPHcaCds8cHjvUGsMN0EuRg4Vad4PADikJNQ6a61mJi1DclR0NornJ2vnTGfSobNPYltXajQSiG48+um4EmWoCNoteOqpOd0nNKVuC0WZCOGA== 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: 1092e9fb-f63a-4e59-2424-08d7ca222865 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Mar 2020 03:20:35.0960 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT135 Subject: Re: [PHP-DEV] RFC: Interest in function autoloading? From: tysonandre775@hotmail.com (tyson andre) > I've searched the archive, but I haven't found anything about this issue.= =A0=0A= > I notice there exists an RFC for autoloading of functions, or more to the= =0A= > point, a unified autoloading system for classes, functions, constants and= =0A= > streams:=0A= =0A= Hi Terje,=0A= =0A= I'd brought this up 2 months ago in https://externals.io/message/107967 "Au= toloading functions/consts without a performance impact"=0A= =0A= One major issue is that foo() can refer to both foo() and NS\foo() from nam= espace NS,=0A= and there's many different opinions on how/if an autoloader should deal wit= h that, each with their own drawbacks.=0A= =0A= If the ambiguity was avoided, then I think more people would be open to aut= oloading for functions/constants.=0A= I had proposed one option for avoiding ambiguity for functions and constant= s, which was rejected: https://wiki.php.net/rfc/use_global_elements=0A= I don't think the proposed alternatives would reach a 2/3 majority either i= f voted on, though, but may be mistaken.=0A= =0A= - Tyson=0A=