Open ericlippert opened 7 years ago
The grammar in Ch 20 for "simple" use clauses is incorrect. It states that
use function \N\F, \N\G;
is legal, but
use function \N\F, function \N\G;
is illegal. Though this IS illegal in PHP, in Hack we wish it to be legal.
The spec should be updated to say so. The grammar can be emended by changing
use namespace-use-kindopt namespace-use-clauses ;
to
use namespace-use-kind-clauses ;
The grammar in Ch 20 for "simple" use clauses is incorrect. It states that
use function \N\F, \N\G;
is legal, but
use function \N\F, function \N\G;
is illegal. Though this IS illegal in PHP, in Hack we wish it to be legal.
The spec should be updated to say so. The grammar can be emended by changing
to