Grian
12/28/2021, 5:55 AMmyDsl {
1,
2,
3,
}
and end up with like a list of 1, 2, 3
somewhere in the DSL's codeJoost Klitsie
12/28/2021, 8:52 AMmyDsl {
+1
+2
+3
}
The +
(or unaryPlus) operator makes a lot more sense, it means we add something to something.Ruckus
12/28/2021, 8:56 AMmyDsl(
1,
2,
3,
)
You couldn't do other calculations in the block, as the results of any calculations would need to be implicitly added. Thus you're effectively just passing a list of parameters, which is exactly what functions do.