Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101758 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92634 invoked from network); 4 Feb 2018 08:50:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2018 08:50:54 -0000 Authentication-Results: pb1.pair.com header.from=netmo.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=netmo.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.195 as permitted sender) X-PHP-List-Original-Sender: netmo.php@gmail.com X-Host-Fingerprint: 209.85.216.195 mail-qt0-f195.google.com Received: from [209.85.216.195] ([209.85.216.195:34896] helo=mail-qt0-f195.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 27/F3-49805-D69C67A5 for ; Sun, 04 Feb 2018 03:50:54 -0500 Received: by mail-qt0-f195.google.com with SMTP id g14so36150473qti.2 for ; Sun, 04 Feb 2018 00:50:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=rNcEOo7ch82zW/zw9h006SPztdEkw5yEx/sVuN5RkXI=; b=T6txbpaB6qFFyoH9jwiie0/WWYuJfdYmIOylSXSIZTtKsXuXFO2/U3oB8BKI+NzV+y oOh3R0/40JU6a9zeWQzKMn2beHEEcEG1PTMgmr3fm6DBua9aTjQu36g1nM7r0o4gGEG7 /6Oi92ZY1KRGWb+z1VCUKi3ad/5GNoF6g3YD8oLciISpJHOTcR5T39a6BpczbW2HG4u2 TK9bzsnrCXKtCZ8M1rKO0eoeVs/bXOgscqHTGfCwI+2XToLFoNIL1g4B9TV+SSH8vMHC kGE5CYFvoXHlJYCSlLSwleVOhgchgB9FzCgWpzmNmgI1eHmf7K5EGlOmqtxqTcRMKXVz f1KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=rNcEOo7ch82zW/zw9h006SPztdEkw5yEx/sVuN5RkXI=; b=p0al60kirw4XgS265HJOlPJR51dEERRPYQegU2ypkTWthVJNxKvZWlx7u7p2K05aB2 WSor+i3KOfg+yz0bj52ePvhNkqkXwFkqswAyvTtHgmjqKg+1f4O5sgPeO7AQr+6WudpT fkRja+t8HiWuBREFZefPieopLcBdzTRtvlg6wqZ9ef0/asLL15CQDMC/2v843d5nxIqy eRAfJWaJF9vhZR1P2s3mimpQ+B5P0H+2fpK5/otU4FeT+SBiE+/rVUHha19sRqWqelGb DspLheiIRqXpDpLlZ30bUnw2ePO4Arn3e+kT1rO3FXdNJj/qtq2n05NVAnxpFcswJBsC rITg== X-Gm-Message-State: AKwxytd9ojjTcuqnS8z/IUsuBlevy1jTHlXTSEJE6egFu/o4Owk26JGP hmESy6lIC5DAgl26/XTcVJEdvU/oQWdJE7vo82sx8Q== X-Google-Smtp-Source: AH8x227PMuBSjpCyjw3Tv5k6Ud0xl0D907uTXITvgUvPKC3p2BI8SU9Y9IDRGgCfx748SZmIxTpdP+c5J9NNc0yMYi4= X-Received: by 10.200.50.25 with SMTP id x25mr25059788qta.221.1517734251286; Sun, 04 Feb 2018 00:50:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.53.239 with HTTP; Sun, 4 Feb 2018 00:50:50 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Feb 2018 09:50:50 +0100 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="001a1149dac6e955f505645f0a9c" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Deprecation of fallback to root scope From: netmo.php@gmail.com (Wes) --001a1149dac6e955f505645f0a9c Content-Type: text/plain; charset="UTF-8" I just want to add: vote is not very obvious - non internals people are getting too excited about this :P Please consider: People that don't have an IDE that handles the imports automatically, will be effectively forced to prefix \ to everything, which is really ugly. But again, prefixing \ is not even the end of the world. I bet that if fallback to global scope didn't exist from the beginning, we wouldn't care anymore about prefixing \. PHP has tons of global symbols, it's not like other languages that have functions organized in classes. Doing the most basic array and string operations will easily require 4-5 imports, probably more. If all I had to do was `use String;` and all the string functions were available as methods on strings, then it would be completely fine. On the other hand, string functions are rarely used, and arrays can be replaced by oop collections like spl, ds, or even userland ones. Function autoloading is almost a development feature only, since in a few years we'll all likely use opcache, which doesn't need autoloading. --001a1149dac6e955f505645f0a9c--