Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add missing keywords #23293

Closed
wants to merge 2 commits into from
Closed

docs: add missing keywords #23293

wants to merge 2 commits into from

Conversation

dy-tea
Copy link

@dy-tea dy-tea commented Dec 27, 2024

When I was working on a pr to c2v I noticed there were quite a few keywords missing from the Keywords section of the docs.

This may be intentional because most of these are type names but I can confirm that all of these are reserved by the compiler and therefore cannot be used as variable names.

I am unsure about dump because it is part of the ast but is technically a function.

Let me know if any changes should be made.

Huly®: V_0.6-21725

doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
doc/docs.md Outdated Show resolved Hide resolved
@spytheman
Copy link
Member

I think that the type names should be listed separately, and not as part of the keyword list.

Keep in mind, that you can for example do -no-builtin, and have V compile code without string, array or map defined (or implement them yourself).

You can not do that with actual keywords, without modifying the compiler.

@dy-tea
Copy link
Author

dy-tea commented Dec 27, 2024

Yeah the only question is if dump should be considered a keyword or not, otherwise there is no difference. It may make sense to have a Reserved Tokens sections as it makes certain projects easier (e.g. syntax highlighters).

@dy-tea dy-tea closed this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants