You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, there are |, || and &&, but no &... I think it could be confusing.
Nevertheless, is it not a problem if the appropriate errors are made? (like maybe `&&`?)
Marking this as Good First Issue — the code changes are fairly isolated to the parser, which is the simplest part of the compiler. Almost a search replace for and & or -> && & || would be sufficient (but I imagine not quite...)
Possibly lezer would need some small amount of work to ensure it can handle & and &&, but if someone were to do the work for this, I'd be happy to make those changes.
Activity
aljazerzen commentedon Mar 14, 2023
You make a good point. I agree with the distinction.
Unfortunately it impacts "easy" queries:
It would feel closer to c-style notation, but a bit less approachable for non-tech-savy people.
I'm +0.5
eitsupi commentedon Mar 14, 2023
I like
&&&||, rather thanand&or(#1964 (comment))But, there are
|,||and&&, but no&... I think it could be confusing.Nevertheless, is it not a problem if the appropriate errors are made? (like
maybe `&&`?)max-sixty commentedon Mar 19, 2023
As discussed on the dev call, let's go ahead!
max-sixty commentedon Mar 23, 2023
Marking this as Good First Issue — the code changes are fairly isolated to the parser, which is the simplest part of the compiler. Almost a search replace for
and&or->&&&||would be sufficient (but I imagine not quite...)Possibly
lezerwould need some small amount of work to ensure it can handle&and&&, but if someone were to do the work for this, I'd be happy to make those changes.