-
Notifications
You must be signed in to change notification settings - Fork 48
doc : improve explanation on namespace #69
Comments
There is already a section for that, https://hoa-project.net/En/Literature/Hack/Compiler.html#Namespaces. Thoughts? |
Indeed, I don't know if it's new or if I don't understand it at first. But honestly for me it was not clear when I read this doc (and I read it several times ...) |
Is it clear now? |
it seems, I will re-read it and close the issue if it is. Otherwise I will try to suggest something. |
I know this was supposed to be an issue on namespace documentation, but since it was related to my forum post, I wanted to make a suggestion for documentation on lexer mechanism. The lexer behaviour is sometimes mysterious if you haven't looked at the source to see this:
After that point, you can specify your tokens with the help of an online regex parser, but I don't think it's obvious at all without this knowledge. |
The |
I think the problem was with space characters. After reading your post, I tried replicating problems I had (or thought I had), but I wasn't able to. What I noticed instead was this:
The first |
Apply fixes from StyleCI
@Grummfy what is your opinion about the documentation at the moment? |
When I read the following topics http://discourse.hoa-project.net/t/hoa-compiler-keyword-identifier-clash/252 I can understand that namespace permit to avoid collision between namespace but also to isolate each namespace (correct?).
So it could be intresting to add a section in the namespace documentation about that, on the why using namespace and they purpose with a good example ;)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: