Skip to content

Remove "(both forms are equivalent)" after only one form #7981

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 1 commit into from
Jan 14, 2020
Merged
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
10 changes: 5 additions & 5 deletions docs/docs/reference/metaprogramming/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ title: "Macros"
### Macros: Quotes and Splices

Macros are built on two well-known fundamental operations: quotation and
splicing. Quotation is expressed as `'{...}` for expressions (both forms are
equivalent) and as `'[...]` for types. Splicing is expressed as `${ ... }`.
Additionally, within a quote or a splice we can quote or splice identifiers
directly (i.e. `'e` and `$e`). Readers may notice the resemblance of the two
aforementioned syntactic schemes with the familiar string interpolation syntax.
splicing. Quotation is expressed as `'{...}` for expressions and as `'[...]`
for types. Splicing is expressed as `${ ... }`. Additionally, within a quote
or a splice we can quote or splice identifiers directly (i.e. `'e` and `$e`).
Readers may notice the resemblance of the two aforementioned syntactic
schemes with the familiar string interpolation syntax.

```scala
println(s"Hello, $name, here is the result of 1 + 1 = ${1 + 1}")
Expand Down