Re: [RFC] \PHP namespace usage heuristics

From: Date: Wed, 08 Jul 2020 06:09:40 +0000
Subject: Re: [RFC] \PHP namespace usage heuristics
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-110874@lists.php.net to get a copy of this message
Hi Stephen, śr., 8 lip 2020 o 07:09 Stephen Reay <php-lists@koalephant.com> napisał(a): > ... > IMO (and I know it’s not universal) acronyms should remain upper case. > Camel case is about upper casing the first letter of each word. The letters > of an acronym are all the first letters of words, thus DOM not Dom, etc. > It doesn't really matter much though, since core symbols are already known on runtime so symbol resolution works by case insensitive manner. So it's only a matter of preference on documentation side. namespace Foo\Bar { class BaZ {} } namespace { var_dump(new foo\bar\baz()); } Cheers, -- Michał Marcin Brzuchalski

« previous php.internals (#110874) next »