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

[Syntax] Use --- instead of nodes{}; net{} nesting blocks #697

Closed
emil14 opened this issue Sep 19, 2024 · 2 comments
Closed

[Syntax] Use --- instead of nodes{}; net{} nesting blocks #697

emil14 opened this issue Sep 19, 2024 · 2 comments
Assignees

Comments

@emil14
Copy link
Collaborator

emil14 commented Sep 19, 2024

flow Main(start) (stop) {
	Println
	add ReducePort<int> { Add<int> }
	---
	:start -> (
		1 -> add[0]
		2 -> add[1]
	)
	add -> println -> :stop
}
@emil14
Copy link
Collaborator Author

emil14 commented Sep 19, 2024

Other ideas were to

  1. use def, func or comp (or get back to component) keywords instead of (IMO a little bit confusing flow)
  2. Use more Go-like syntax for imports import (...)
  3. (Questionable) use () for DI instead of {}

@emil14
Copy link
Collaborator Author

emil14 commented Oct 6, 2024

implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant