Hi!

> Just a minor note; The semi-colon after the closing brace, seems
> superfluous. Is there any reason for it?

Unfortunately, yes. The problem is that the closure must be an
expression so it can a) be assigned to a variable and b) returned
directly. And since the expression is only a part of a statement, I can
take no influence at that point in the grammar as to whether a semicolon
should follow or not.

I don't see any way of removing the semicolon without a) either
making the language inconsistent and/or b) adding a lot of bloat to the
grammar.

Regards,
Christian

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to