-
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
Make default begin ... end
rather than let
#30
Comments
Well, what I really would like is some way to send variables to the outer scope easily, with something like |
yeah I guess I could actually do that. I thought I wouldn't because of all the intermediary variables, but I guess they won't interfere much? I'm not sure if there's a speed difference at global scope because the intermediary variables would be non-const. I guess one could make them const as well though |
I was wrong about AddToField.jl working with Aren't all the intermediate variables in |
yes they are, I just chose let in the beginning to have no trace at all of these variables. But I do think exporting a variable once in a while or saving an intermediate step can be useful |
I think it's not uncommon to want things created in
@aside
blocks to be visible in the outer scope of a@chain
block.If we make the default "block" for
@chain
to be just abegin ... end
block without introducing a new scope, the user can make the same behavior withThis is something I considered in AddToField.jl and settled on
begin ... end
.The text was updated successfully, but these errors were encountered: