-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single call inline chain fails #51
Comments
Bump |
I've been thinking a bit about this. There are currently three different modes supported: Inline: @chain a b c Block with prefix argument (original syntax): @chain a begin
b
c
end Block without prefix: @chain begin
a
b
c
end So my thought is that the original syntax is kind of a combination of the other two, and it seems to me in principle there's just one mode, but it's currently not implemented that way. That one mode would be inline like In that new mode you could then do stuff like this as well if you wanted to: @chain a b begin
c
d
end e f |
Fwiw I don't really like the "block without prefix" form, it seems like a weird special case. Compatibility aside, wouldn't it be simpler to just say the options are @chain data block
@chain data expr... |
It may be simpler in some ways, but the single block style was introduced because some users had long first variable names that looked cluttered inline with the |
I'm interactively building a chain one step at a time, so I want to initially evaluate the first step. The block version works
just not the inline version.
The text was updated successfully, but these errors were encountered: