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

Alternative syntax for outports #639

Open
emil14 opened this issue May 17, 2024 · 3 comments
Open

Alternative syntax for outports #639

emil14 opened this issue May 17, 2024 · 3 comments

Comments

@emil14
Copy link
Collaborator

emil14 commented May 17, 2024

Before

:data -> if
if:then -> ('true' -> println)
if:else -> ('false' -> println)
println -> :sig

After

:data -> if -> {
	:then -> ('true' -> println)
	:else -> ('false' -> println)
}
println -> :sig

TODO think about this a lot more, about downsides

@emil14
Copy link
Collaborator Author

emil14 commented May 17, 2024

Probably only for cases where you use (send?) node (if in this case) only once

@emil14
Copy link
Collaborator Author

emil14 commented May 17, 2024

Obv downside is that we have 2 different ways to do the same thing (again)

However, it could be handled by formatter

@emil14
Copy link
Collaborator Author

emil14 commented May 18, 2024

Corner Case (Shadowing)

Beware of cases where you overwrite existing ports with childern's

:start -> foo -> { :start -> ... }

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

No branches or pull requests

1 participant