Skip to content
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

Introduce begin and end blocks like Lazy's @> to avoid |> #6

Open
xiaodaigh opened this issue Aug 16, 2020 · 3 comments
Open

Introduce begin and end blocks like Lazy's @> to avoid |> #6

xiaodaigh opened this issue Aug 16, 2020 · 3 comments

Comments

@xiaodaigh
Copy link
Contributor

The proposed syntax would be

@hose something begin
   fn1
   fn2
   fn3(x, _)
end

would be equivalent to fn3(x, fn2(fn1(something)))

@FNj
Copy link
Owner

FNj commented Aug 17, 2020

Don't really have time to code it, but if you'd be so kind, I would, too, find it useful.

@pdeffebach
Copy link

Note that this actually makes debugging at the REPL more difficult. It's harder to copy and paste part of your chain because you need to add an end

@xiaodaigh
Copy link
Contributor Author

debugging at the REPL

I normally never do that. Don't know about others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants