Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54851 invoked from network); 24 Nov 2017 07:05:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2017 07:05:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=khaweronline@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=khaweronline@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.169 as permitted sender) X-PHP-List-Original-Sender: khaweronline@gmail.com X-Host-Fingerprint: 209.85.217.169 mail-ua0-f169.google.com Received: from [209.85.217.169] ([209.85.217.169:35180] helo=mail-ua0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/07-04772-3D4C71A5 for ; Fri, 24 Nov 2017 02:05:56 -0500 Received: by mail-ua0-f169.google.com with SMTP id 108so14142265uaf.2 for ; Thu, 23 Nov 2017 23:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=ybeMo8mcgBG/Fs32dzdeu6HPsI2VWry5QsRAJraZgtg=; b=IazFHYnrwoHsfvwSac/I0ZYgTbf0AUdqP7kEbvR2e7z1VlLU4RSYyO9zyOwJka2lM+ zND90lkTVTd5E9k7i+9B0jGNxOfSBjBUWta5e2VaAM7BgbkTOH520nd8C8wm4tg9Qkx/ bNx3O8VBzbLZGjpfdm8RKs7LV6D2uz0kw+ltudN0Hf1+36353Z3GOhqXXjCQNnSJHahC Ee1KCCrEfmYZJY0EkIy4yN94XEamjrFFAFq6yZ/zL/IC2Ozrs2koR9msFJN3M+acN8fb jiwaHz2/wM7c8xuRKQDpz+uVDBjQ44XF+U06vV07x13zl3C9wDZTnrn2vuHt3ZxGByxf IvfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ybeMo8mcgBG/Fs32dzdeu6HPsI2VWry5QsRAJraZgtg=; b=Ej/1BlKWE2aJToRbcHm4TYB3i1VWvuvp1BRv0KcLlgvYfcEGMRXGQLQB1cZiYc8AdD rI4LzCxpxrzvf9zt2BE6PAM3ZMiBB3rJ//AiCAMmHknMTg4T28eZmSDilqZeUY2mkb+g cxzy1vrAB/SDHPng62wYovg6br8Ca7y+KEBtPo4ZE5J58hYIGaRdPFbcyJd//C1WtipA EGeOE/31DNmAJTQIvj+vzMlKjh8w2FCzfiwnkaVd4hGDjQxF6hJ4AhdACn5vy3YKR+R2 oDFG9agkhHFPl9Dbad1kalIzerWyrCMfbZza0SzWEpk4RxDQ/jsifWJOmvNGtifYq/Wa hAbg== X-Gm-Message-State: AJaThX5Yx2l8SUYHEkVZCrIbR73ZzxWQzGmSaCSsq2fJF0fEhc83A7rW dT0nN7mMk0Jol5Se/hO8geXiEnCTCDg66hHVvEiXYQ== X-Google-Smtp-Source: AGs4zMZQKqKGg4Zkxppn4JMV8Tm1w8cZB8xqOjjvZJJqsUq5gJrG0Hm/xc2EsQTeEzv+9k72h/BleFRJEbqV6sqTowI= X-Received: by 10.176.21.174 with SMTP id i43mr21913887uae.115.1511507152797; Thu, 23 Nov 2017 23:05:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.221.26 with HTTP; Thu, 23 Nov 2017 23:05:52 -0800 (PST) Date: Fri, 24 Nov 2017 12:05:52 +0500 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="001a11453128eb07ba055eb52eec" Subject: Changes in namespace importing From: khaweronline@gmail.com ("Khawer .") --001a11453128eb07ba055eb52eec Content-Type: text/plain; charset="UTF-8" We use 'use' keyword to import other namespaces, namespace classes, namespace functions, and namespace constants. Example 1) use abc; (Import abc namespace) 2) use abc\ClassB; (Import ClassB from abc namespace) 3) use function abc\sayhello; (Import sayhello function from abc namespace) 4) use const abc\name; (Import name constant from abc namespace) In (1) we are importing whole namespace and in (2) we are just importing class. But there is no difference in syntax like when we import function we use 'use function'. We should change (2) to 'use class abc\ClassB'. It will make syntax more clear and remove any confusion and also match with other syntax like use function and use const. Current syntax will also work so there will be no backward compatibility break. --001a11453128eb07ba055eb52eec--