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

Mention the "use" extension method in exceptions.md #87

Closed
wants to merge 1 commit into from

Conversation

mikehearn
Copy link
Contributor

Compare it to Java's try-with-resources statement.

Compare it to Java's try-with-resources statement.
@abreslav
Copy link
Contributor

@hhariri what do you think: does this information belong to the language reference?

@hhariri
Copy link
Member

hhariri commented Sep 24, 2014

I'd say something like this is better suited in the Idioms and/or FAQ section. Otherwise, we could add too many constructs and alternatives in different sections of the reference docs. While Kotlin targets the JVM, Java isn't the only language that Kotlin users are coming from, and things like this could be also compared to 'using' statement in C#. Then it would become a mess.

I'd move it to under FAQ most likely and if we start to get enough alternatives for Java then have its own FAQ doc.

@yole
Copy link
Contributor

yole commented Oct 28, 2015

I've added this example to the 'idioms' section.

@yole yole closed this Oct 28, 2015
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

Successfully merging this pull request may close these issues.

4 participants