Logical not #16

Closed
opened 2025-08-18 12:19:12 +00:00 by zupa · 4 comments

This prints "oh no":

import io

main() {
	if ! true {
		io.write("oh no")
	}
}
This prints "oh no": ``` import io main() { if ! true { io.write("oh no") } } ```
Owner

We could just call the language JavaScript and everything makes sense now. /s

Serious note though, logical not is !implemented yet.
I've added a preliminary error message, but keep the issue open until the actual functionality is added.

We could [just call the language JavaScript](https://www.destroyallsoftware.com/talks/wat) and everything makes sense now. /s Serious note though, logical not is `!implemented` yet. I've added a preliminary error message, but keep the issue open until the actual functionality is added.
ed changed title from if ! true {} to Logical not 2025-08-19 09:56:24 +00:00
ed self-assigned this 2025-08-19 09:56:34 +00:00
Author

Sorry, I didn't realize it wasn't implemented as I didn't get a compile error. Then I wouldn't have filed it.

Consider the issue closed from my end. (There is no point in having an issue for every non-implemented feature at this point.)

I'll leave it open as that's what you wanted, but it's yours to close now.

Sorry, I didn't realize it wasn't implemented as I didn't get a compile error. Then I wouldn't have filed it. Consider the issue closed from my end. (There is no point in having an issue for every non-implemented feature at this point.) I'll leave it open as that's what you wanted, but it's yours to close now.
Owner

There is no point in having an issue for every non-implemented feature at this point.

Makes sense. Closing!

> There is no point in having an issue for every non-implemented feature at this point. Makes sense. Closing!
ed closed this issue 2025-08-19 11:01:54 +00:00
Owner

Added for conditional statements in cli/q@017e510218.

Added for conditional statements in https://git.urbach.dev/cli/q/commit/017e510218b7b1fbc01f957da14a7171f3f93119.
ed added spent time 2025-09-06 09:29:36 +00:00
10 minutes
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 10 minutes
ed
10 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cli/q#16
No description provided.