-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Idea] with
blocks instead of defer
#10
Comments
I've considered this, but I'm not really sure how much I like the proposed idea. The problem for me is really that this forces everything to be indented one level, which I'm not a fan of. So, if I were to open 3 files at once, I would have 3 nested If you have any ideas on how we can avoid this, maybe there's another variation of this idea we can add. |
Instead of doing nested blocks we can do something like this: with let a = ..., let b = ... {
...
} |
Sounds reasonable. I have nothing against this, but I would prefer if we had these alongside |
Okay |
We can implement those as syntatic sugar to |
Yep, you can have multiple defers in a block. |
Maybe instead of using
defer
statements we can usewith
blocks:Which essentially means:
The text was updated successfully, but these errors were encountered: