You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I think that because the purpose of the package is to reduce complexity / redundancy as much as possible, I'd like this to work:
@chain df (
function_1
function_2(x)
)
# or alternative syntax@chain(
df
function_1
function_2(x)
)
The problem is that multiple lines between parentheses are not allowed, this gives a syntax error due to missing commas. I don't want commas because each line is a separate expression and not an argument to a function. What does work, but what I don't want to use because it looks weird, is this for example:
I think it would be reasonable to parse the syntax for usage in macros, this wouldn't break existing code. I believe this is a kind of natural extension for macros, because we already break normal syntax rules for macros a little bit by parsing this as one expression:
@somemacro arg1 arg2 begin
something_long
end even_more trailing_arguments
The text was updated successfully, but these errors were encountered:
In Chain.jl I currently offer this syntax:
Sometimes I think that because the purpose of the package is to reduce complexity / redundancy as much as possible, I'd like this to work:
The problem is that multiple lines between parentheses are not allowed, this gives a syntax error due to missing commas. I don't want commas because each line is a separate expression and not an argument to a function. What does work, but what I don't want to use because it looks weird, is this for example:
I think it would be reasonable to parse the syntax for usage in macros, this wouldn't break existing code. I believe this is a kind of natural extension for macros, because we already break normal syntax rules for macros a little bit by parsing this as one expression:
The text was updated successfully, but these errors were encountered: