Re: Constants in namesapces
| From: | Richard Lynch | Date: | Sun, 26 Aug 2007 03:40:50 +0000 |
| Subject: | Re: Constants in namesapces | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31910@lists.php.net to get a copy of this message | ||
On Thu, August 23, 2007 5:52 pm, Stanislav Malyshev wrote:
>> define_ns('FOOBAR', $value);
>
> Can be, but there's two downsides:
> 1. define_ns would be weird construct - it would be combined
> function/operator
> 2. operators with underscores look bad...
At the risk of starting another packages versus namespace debacle... :-v
I would have found this easier to grok as:
ns_define('FOOBAR', $value);
That may, however, merely be my admittedly twisted world-view.
I could live with this:
NSdefine('FOOBAR', $value);
Disclaimer: I'm the person least likely to use the dang thing, so name
it whatever you want. :-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?