Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102722 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38639 invoked from network); 10 Jul 2018 17:18:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2018 17:18:25 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 85.215.255.50 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 85.215.255.50 mo4-p01-ob.smtp.rzone.de Received: from [85.215.255.50] ([85.215.255.50:12974] helo=mo4-p01-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0C/99-15421-C5AE44B5 for ; Tue, 10 Jul 2018 13:18:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1531243097; s=strato-dkim-0002; d=kelunik.com; h=Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=t3WrGr4BpLh5h9HiVoThWAFcqhHZ9WARt7fLMjAG388=; b=Gz5j47ut3/V7TwsMui111vrBWwcW4VLvugAHMOeyaYnE95EHFxoSHcfAkr1alXa2uV Tvu7WcEdeYGCEDZk1NxJkv+vjBoFWYGYfxU1YQw4tQcSovFME6wQA+zHbqgWIYDWT6L/ DoVw5443D1YfEg9Bv0H+NzlsXgQEejbz18YcpETf0elLschkIGmAtivukN1OjBWJexDH wMxCPE4Il+oP4CCB8GRtQmEe026Z0YZGvxrRpfDrtexf/Cay8JoR2FOd/4y+ZheawuKn ZZfuNdc+JbpYlOcpT7pz65ySjxyaUW+QjCAc14SBHZDHCbdCAhHmNCe2jRQowTXyW0jb x/xQ== X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8Db2nURiu/cA==" X-RZG-CLASS-ID: mo00 Received: by mail-yw0-f178.google.com with SMTP id p129-v6so8112760ywg.7 for ; Tue, 10 Jul 2018 10:18:17 -0700 (PDT) X-Gm-Message-State: APt69E1sDrX4EmB/PZ1r1stQWZYPCn2N1QbvlDcSfWxTukGxWDCEucOP vebfAJkO4upVrdCQVq85p2dg2wMkM2VTfLO8O6E= X-Google-Smtp-Source: AAOMgpcwufg9UlAPS2JMNZwVI6zSOyChI1NIuFTrdkNAfS/EoHLzZBZcOl+LYL8HaTCPULjnJAdoCueWv4ZfGjKBnWQ= X-Received: by 2002:a0d:cf86:: with SMTP id r128-v6mr7555280ywd.353.1531243096853; Tue, 10 Jul 2018 10:18:16 -0700 (PDT) MIME-Version: 1.0 References: <9D.67.49043.CEA834B5@pb1.pair.com> In-Reply-To: <9D.67.49043.CEA834B5@pb1.pair.com> Date: Tue, 10 Jul 2018 19:18:05 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Andrea Faulds Cc: PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Re: [VOTE] Deprecate and remove case-insensitive constants From: me@kelunik.com (Niklas Keller) > Hi Nikita, > > I'm a terrible person for only bringing this up now (I apologise for not > following the list as closely as I used to), but one reason > case-insensitive constants are maybe useful is they leave open the > possibility of being able to access functions as values in future: like > some constants, function names are case-insensitive, and a fallback > could be added to constant accesses to return a closure of the function > with the same name if no constant is found. > > Of course, removing case-insensitive constants wouldn't preclude such a > feature, just make it a little more annoying to implement, so this is > not really a significant reason to vote against. To that end, I'll vote > in favour of this deprecation. No, thanks. The fallback is already a bad thing for functions, we don't need another one. If such a feature would be implemented, it'd probably be via combined symbol tables, making either everything case-insensitive or everything case-sensitive. Regards, Niklas