-
-
Notifications
You must be signed in to change notification settings - Fork 4
macro
Pannous edited this page Sep 18, 2021
·
2 revisions
Custom precedence of custom operators is a first class citizen and key feature of the angle programming language. It makes many macros unnecessary and instead allows building elegant code from first principles.
So the if condition could be implemented entirely clean via:
IF(condition:block then:block else:block?) = condition and then or !condition and else
(safe for some syntactic sugar such as if 1:2 == 2