Short circuiting logical connectives

This issue has been tracked since 2022-08-08.

The documentation says "Comparisons can be combined via the and, or and not expressions in the usual manner". I thought the usual manner was to not evaluate the right-hand side when the result is determined by the left-hand side, but apparently not:

https://jsfiddle.net/_jks/rf74xdbe/

If short-circuiting AND and OR is not considered suitable, how about AND THEN and OR ELSE? At least AND THEN is not currently a parse error but it doesn't do short-circuiting evaluation.

1cg wrote this answer on 2022-10-04

Unfortunately this is a consequence of the async transparency in the runtime. Same thing with parameter evaluation. I'll make a note of it in the docs. 😑

More Details About Repo
Owner Name bigskysoftware
Repo Name _hyperscript
Full Name bigskysoftware/_hyperscript
Language JavaScript
Created Date 2020-05-27
Updated Date 2022-11-25
Star Count 1265
Watcher Count 18
Fork Count 75
Issue Count 86

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date