|
|
|
|
|
by gus_massa
687 days ago
|
|
(I'm not very involved with the Rhombus project. I just post there a comment from time to time.) I think that the macro system can handle the traditional "if X ... else ..." structure, but there is a design decision to avoid magic keywords like "else" as much as possible, like "in" in "fox X in Y: ..." Why should each construction have a different magic keyword? Can it be solved with only one thing that is shared in all construction like "|"? If you see the examples, all the other constructions with branches like "cond" that replaces "if" with "elseif" or "elif" ir whatever use "|". "match" also uses "|". This is better if you want to write macros that extend the language and have a similar structure. (For what it's worth, I insisted in that "if" uses two "|" (one for each branch, instead of one only for the "else" part.) |
|
aut consequens, aut alternatus? ( https://en.wiktionary.org/wiki/aut#Conjunction )