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

Add Boolean 'and' and 'or' to kcl stdlib #4188

Open
guptaarnav opened this issue Oct 17, 2024 · 1 comment · May be fixed by #4194
Open

Add Boolean 'and' and 'or' to kcl stdlib #4188

guptaarnav opened this issue Oct 17, 2024 · 1 comment · May be fixed by #4194
Labels
enhancement New feature or request kcl Language and compiler features

Comments

@guptaarnav
Copy link
Collaborator

Currently boolean and/or is not implemented.

@nrc nrc added kcl Language and compiler features enhancement New feature or request labels Oct 17, 2024
@nrc
Copy link
Contributor

nrc commented Oct 17, 2024

I think these should be operators (& and |). I guess that & is pretty clear, I'm not sure if | has any intuition for non-programmers, but it is a well-established convention, and I don't think it's a big thing to learn. We might want to make && and || aliases for the simpler version (I don't think we should make short-circuiting part of the semantics, we can leave that as an implementation detail, but the doubled versions are more common in the wild)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kcl Language and compiler features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants