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

Recursively typed struct fields must be optional #23

Open
boynton opened this issue Jun 22, 2016 · 0 comments
Open

Recursively typed struct fields must be optional #23

boynton opened this issue Jun 22, 2016 · 0 comments
Assignees
Labels

Comments

@boynton
Copy link
Collaborator

boynton commented Jun 22, 2016

Otherwise an infinite structure will be described.

i.e. this is invalid:

type Node Struct {
  Node left;
  String value;
  Node right;
}

but this is valid:

type Node Struct {
  Node left (optional);
  String value;
  Node right (optional);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant