hhvm / user-documentation

Documentation for those that use HHVM and write Hack code.
http://docs.hhvm.com/
Other
130 stars 159 forks source link

":" is a valid start of a name (for xhp classes) #591

Closed lexidor closed 4 years ago

lexidor commented 5 years ago

Please complete the information below:

Where is the problem?

http://staging.docs.hhvm.com/hack/source-code-fundamentals/names @ 1st paragraph

What is the problem?

This page states that names must start with a word character, but certain names may start with a colon (xhp classes). This may however be intentional.


Please don't change anything below this point.


lexidor commented 4 years ago

xhp class is a new (almost) released alternative, closing.

fredemmott commented 4 years ago

FYI we're not planning on enabling xhp class until the XHP namespace support as a whole is usable; there's a PR up, but it's going to take a while to review and to gain enough confidence in it to flip the default