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

Consider some form of limited infix for boolean logic #15

Open
calebzulawski opened this issue Mar 16, 2023 · 0 comments
Open

Consider some form of limited infix for boolean logic #15

calebzulawski opened this issue Mar 16, 2023 · 0 comments

Comments

@calebzulawski
Copy link
Collaborator

I think allowing arbitrary infix function calls is probably wrong, but would be appropriate for some built in operations.

For example:

match std:env:os [
    linux -> $linux-value
    _ -> $otherwise
]

vs

if (std:env:os == linux) $linux-value else $otherwise

(yes, std:equal exists, but that somehow feels even less idiomatic than match)

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