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

Guards (match and switch) #748

Closed
emil14 opened this issue Nov 4, 2024 · 0 comments
Closed

Guards (match and switch) #748

emil14 opened this issue Nov 4, 2024 · 0 comments

Comments

@emil14
Copy link
Collaborator

emil14 commented Nov 4, 2024

Guard

Guard won't have incoming -> (and thus won't be used in chained connection). Other than that, it's pretty much the same - match maps senders, switch maps enders with receivers.

Match

match {
    :a: 1
    :b: 2
    :c: 3
} -> ...

Switch

switch {
    :a: -> ...
    :b: -> ...
    :c: -> ...
}

Related to #731 #725 #726 #747

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