Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107893 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63531 invoked from network); 29 Nov 2019 21:53:12 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 29 Nov 2019 21:53:12 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id BE5972D20FB for ; Fri, 29 Nov 2019 11:48:40 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Fri, 29 Nov 2019 11:48:40 -0800 (PST) Received: by mail-wm1-x32d.google.com with SMTP id u8so764895wmu.0 for ; Fri, 29 Nov 2019 11:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=exDfG4SuLKvQEv5oRoSFLmEjMcXYw48G+kUgt8Atl34=; b=ULIGkSthFGEKwrElMeRaF4e1rlmfkLxYDHTZKpqWyktb4qTppSN9NnOd9YVCQlG2TS FClTqHM3MjRda6/TBDpsb7O1/uDYhACb5Ef6agbb4gZ2euyAollqI2onSLR3SsCAsnFE m5M3FuAgjcBJ9bxuhI1jncdX33K3Q3eEkrStY596BtqK6cun8AjxigZOnxCUhkScjfTf NYRV5taq0JJYf91sUU9UehVb0R4hJkxQ/hb2p6BsmHLCMD6JhhLW1YUT7WbugVsBf2rF u0df37VAe5wb2jo9wtT+t3KRAS8wMBQ54W4JO2Sl7j8siAo/t9bYhacx30zalvEq8uLI QkOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=exDfG4SuLKvQEv5oRoSFLmEjMcXYw48G+kUgt8Atl34=; b=JLTz7kquRmfsAi8TCTtAZRu2IgGtbPVyJqUZO+iesRhhIIwICXQ+hkUZrRXYGaimKD 590DDsPzaYwP8C5qoGmjkgexZzJlJf1blkU+Vdk88uJ4sg3ZpN5onHcRaV8K6MYixky+ 22NtBEkR5I9/OBQeV79CGI5rOv4Y32ILIWA9oBAdeBJ2WCAJasNoG7qtM2JFxj4P3L7x Jf39vfilrACHfFVFtRD7QqFbvm7GUnVKYf92+ax1WOlKeYbc62P/Z0fnWQOq+WVxpDKQ KYHOKY47qlKwrPs+XQTA84h8agQwinprqsu55rIp8FmxYYp8NzPxPQrjn3t0AAtGpPtQ 1bAQ== X-Gm-Message-State: APjAAAV0ba17DmBysf3m9cUZ8WR5/89cw4779z0tOfK937x3jgPDRC1i tmilEeurdETav/t+FeIcAjQ= X-Google-Smtp-Source: APXvYqw6iIzpM/5JtjqAn/yZU+nIHufk2BhDv4peVSmOQ7DlTURKOF75QQ1T3h8+xFsGTCIydcJI+w== X-Received: by 2002:a1c:1b85:: with SMTP id b127mr15731480wmb.108.1575056919043; Fri, 29 Nov 2019 11:48:39 -0800 (PST) Received: from [192.168.0.63] (84-75-30-51.dclient.hispeed.ch. [84.75.30.51]) by smtp.gmail.com with ESMTPSA id t81sm15090596wmg.6.2019.11.29.11.48.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Nov 2019 11:48:37 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: Date: Fri, 29 Nov 2019 20:48:37 +0100 Cc: "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable Message-ID: References: To: tyson andre X-Mailer: Apple Mail (2.3445.104.11) X-Envelope-From: Subject: Re: [PHP-DEV] Opt-in "use function *;" for skipping check for function/const in alternate namespace From: claude.pache@gmail.com (Claude Pache) >=20 > 2. Whether this should be part of = declare(lookup_functions_in_current_namespace=3D1) or a "use" statement, = if it does exist Hi, I don=E2=80=99t think it should be a declare() directive, because: * It changes incompatibly the meaning of valid (non-error-throwing) = code. The current existing declare() directive, declare(strict_types=3D*),= has the nice property that code that does not throw error in *both* = modes does not change behaviour. * When you want to know the FQN of a random identifier, it is necessary = and sufficient to look at the =E2=80=9Cnamespace=E2=80=9D and the = =E2=80=9Cuse=E2=80=9D declarations. With `use function *`, that won=E2=80=99= t change. With `declare(lookup_functions_somewhere)`, you have now to = look at an additional place. =E2=80=94Claude