Closed pdeffebach closed 3 years ago
It's not "technical" as much as I just didn't implement that syntax because I assumed data wrangling would never happen on a single line, if a chaining macro is used already to reduce the complexity. But maybe I'm wrong :) we could easily add this, someone else already made an issue about this earlier
@chain begin
1
-
end
and
@chain 1 begin
-
end
Seems like the begin
might not be doing much here. Is there a case where the begin can't just be inferred automatically?
Those two syntax alternatives are both explicitly implemented. The begin block is necessary to bundle the expressions on different lines. You can't do that with parentheses alone, that doesn't parse.
Closed in #24
In Lazy's
@>
you can doBut in Chain you need
Is there a technical reason for this? Maybe it's not necessary?