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

Declare Language Specification #288

Open
mseshachalam opened this issue Jun 20, 2019 · 12 comments

Comments

@mseshachalam
Copy link

commented Jun 20, 2019

Something like https://golang.org/ref/spec

@spy16

This comment has been minimized.

Copy link

commented Jun 25, 2019

This is important I think. Can help reduce ambiguity for any contributors. I'd like to help if you all think we should do this.

@LouCle

This comment has been minimized.

Copy link
Contributor

commented Jun 25, 2019

V already has https://vlang.io/docs.

@spy16

This comment has been minimized.

Copy link

commented Jun 25, 2019

I was talking about more of a language spec. With technical description of grammar and implementation details. Docs section is more of a language usage documentation

@LouCle

This comment has been minimized.

Copy link
Contributor

commented Jun 25, 2019

Ah. We have been talking about writing an extensive compiler specification. I'll pin this issue.

@LouCle LouCle pinned this issue Jun 25, 2019
@LouCle LouCle changed the title Declare Language Specification Declare Language (Compiler) Specification Jun 25, 2019
@LouCle LouCle added this to General in V 0.2 Jun 25, 2019
@medvednikov

This comment has been minimized.

Copy link
Member

commented Jun 25, 2019

These are different things. @mseshachalam refers to language spec, you refer to compiler spec.

@medvednikov medvednikov changed the title Declare Language (Compiler) Specification Declare Language Specification Jun 25, 2019
@medvednikov medvednikov unpinned this issue Jun 25, 2019
@spy16

This comment has been minimized.

Copy link

commented Jun 28, 2019

@medvednikov Do you think it would be good idea to start on this ? I am interested in working on this.

@ntrel

This comment has been minimized.

Copy link
Contributor

commented Jun 28, 2019

It might be good to require new features to the compiler to come with spec docs. The existing features can be documented over time (0.2 seems too ambitious and no one's volunteered, plus some features are probably still in flux).

@spy16

This comment has been minimized.

Copy link

commented Jun 28, 2019

Agreed about new compiler features to come with spec docs. With respect to existing ones, that was precisely the question. "starting" on it. Also, syntax-wise i think @medvednikov has already sort of finalized it. So, only implementation is under flux. My thought was that some type of formal documentation can help contributors to the compiler itself.

@medvednikov

This comment has been minimized.

Copy link
Member

commented Jun 28, 2019

Yeah, I think that would be great, @spy16

I've also created an RFC repo: https://github.com/vlang/rfcs

@spy16

This comment has been minimized.

Copy link

commented Jul 1, 2019

Any thoughts on how to get started here? Golang language specification is simple and straightforward. But what about the file format ? are you expecting it to be in markdown or something else? @medvednikov

@mindplay-dk

This comment has been minimized.

Copy link

commented Jul 2, 2019

Does it make sense to write a spec at this point already? It sounds like a lot of features and syntax are still being discussed.

Might make more sense to extract a specification after 1.0, so the language can grow and settle organically until then?

@hsiaosiyuan0

This comment has been minimized.

Copy link

commented Aug 19, 2019

I'd like to contribute a V to JavaScript compiler, it's better to have a relatively clear spec about the grammar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
V 0.2
  
General 0.2 features
7 participants
You can’t perform that action at this time.