On Tue, 2011-08-16 at 13:44 +0200, Hannes Magnusson wrote:
> "use foobar;" has no effect, at all, and you will get an warning
> message telling you that.

It has an effect. In

namespace strict { class C {} }
namespace foo { use strict; new strict\C; }

It saves one character of typing. Without the use strict I'd have to
write \strict\C. If this is useful might be questioned but it is valid.

> If you however mix Perl with PHP and attempt to do "use strict;"
> you'll get a nice little errormessage easter egg alerting you of your
> mistakes.

The message should at least be nicer. I'd remove it, though.


PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to