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

Support for multiple using variables #51

Open
KathleenDollard opened this issue Jul 25, 2014 · 0 comments
Open

Support for multiple using variables #51

KathleenDollard opened this issue Jul 25, 2014 · 0 comments

Comments

@KathleenDollard
Copy link
Owner

The following is legal in C#

using (var x as new X(), y as new Y())

which is semantically equivalent to

using (var x as new X())
using (y as new Y())

Kendall Miller and others said "huh that works?"
Other folks using it to simplify things like graphics.

I'd like to support this, but I haven't figured out the best way. The answer may be similar to variables, but the expansion is nested and that is going to be a bit ugly.

No current design.

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

No branches or pull requests

1 participant