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

More compact syntax? #25

Open
devurandom opened this issue Mar 5, 2018 · 0 comments
Open

More compact syntax? #25

devurandom opened this issue Mar 5, 2018 · 0 comments

Comments

@devurandom
Copy link

devurandom commented Mar 5, 2018

It seems that Venia is overly verbose. I would e.g. suggest following more concise forms:

{:name [:Int 1]}
; instead of:
{:variable/name "name"
 :variable/type :Int
 :variable/default 1}

{:name :Int}
; instead of:
{:variable/name "name"
 :variable/type :Int}

{:alias [...]}
; instead of:
{:query/data [...]
 :query/alias :alias}

The context (e.g. :venia/variables or :venia/queries) should be able to explain to the reader the meaning of this syntax.

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

No branches or pull requests

1 participant