Skip to content

Fix1004 #1012

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

Merged
merged 3 commits into from
Feb 15, 2018
Merged

Fix1004 #1012

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions _tour/tour-of-scala.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,9 @@ In practice, the development of domain-specific applications often requires doma
Scala is designed to interoperate well with the popular Java Runtime Environment (JRE). In particular, the interaction with the mainstream object-oriented Java programming language is as smooth as possible. Newer Java features like [annotations](annotations.html) and Java generics have direct analogues in Scala. Those Scala features without Java analogues, such as [default](default-parameter-values.html) and [named parameters](named-arguments.html), compile as close to Java as they can reasonably come. Scala has the same compilation model (separate compilation, dynamic class loading) like Java and allows access to thousands of existing high-quality libraries.

Please continue to the [next page](basics.html) in the Contents menu to read more.

## Implicit classes in Scala ##
Scala offers a language construct called implicit class which simplifies the creation of classes that provide extension methods to another type. Classes annotated with the `implicit` keyword are referred to as implicit classes. For an implicit class to work, it's name must be in scope and unambiguous.

## Scala offers string interpolation ##
With mechanism of string interpolation, Scala enables users to embed variables in string literals. Scala offers three string interpolators in the standard library: `s`, `f` and `raw`. Most commonly used string interpolator is `s` and prepending it to any string literal allows the usage of variables directly in the string.