# Simple Namespace Proposal

- Thread: https://externals.io/message/30460
- Original archive: https://news-web.php.net/php.internals/30460
- Started by Tony Bibbs on 2007-07-05T13:56:14+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #30460 — Tony Bibbs — 2007-07-05T13:56:14+00:00

URL: https://externals.io/message/30460#30460

As a PHP user also frustrated with lack and namespaces and having lurked here for a while I know there was a prior proposal and many countless, lengthy discussions on separators and all.  Have the prior proposals been invalidated?  

--Tony

----- Original Message ----
From: Stefan Priebsch <stefan.priebsch@e-novative.de>
To: David Coallier <davidc@php.net>
Cc: Dmitry Stogov <dmitry@zend.com>; PHP internals <internals@lists.php.net>
Sent: Thursday, July 5, 2007 8:26:25 AM
Subject: Re: [PHP-DEV] Simple Namespace Proposal

David Coallier schrieb:
> I would probably be in favor of throwing a notice or a warning when
> someone modifies a built-in function (or even throw an exception) and
> that way as soon as you do such thing you would know right away that
> you modified something and you would know where the modification
> happened which would make things much easier for people developing and
> debugging applications.

The problem is that this kind of overloading makes a nice feature as
well. This is runied by throwing an exception, and cautious developers
will at least get nervous when they see a notice.

I could imagine that by adding something like "overrides foo()" or
"overloads foo()" to a function/method declaration the developer could
make clear that he willingly overrides a built-in function, and if this
is missing, an exception is being thrown. This may be a little over the
top, however.

Kind regards,

Stefan

-- 
 >e-novative> - We make IT work for you.

 e-novative GmbH - HR: Amtsgericht München HRB 139407
 Sitz: Wolfratshausen - GF: Dipl. Inform. Stefan Priebsch

 http://www.e-novative.de

---

## #30463 — Stanislav Malyshev — 2007-07-05T16:05:47+00:00

URL: https://externals.io/message/30460#30463 · In reply to: #30460

> As a PHP user also frustrated with lack and namespaces and having
> lurked here for a while I know there was a prior proposal and many
> countless, lengthy discussions on separators and all.  Have the prior
> proposals been invalidated?

I think most prior proposals tried to do too much and got into various 
complications because of that. As for separators, I still didn't see any 
idea that made departing from established :: worthwhile.
-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com
