Skip to content

Update macros.md #11903

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
Mar 27, 2021
Merged

Update macros.md #11903

merged 1 commit into from
Mar 27, 2021

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

Quotes and splices are duals of each other. For arbitrary
expressions `e` and types `T` we have:
Quotes and splices are duals of each other.
For arbitrary expressions `e` we have:

```scala
${'{e}} = e
'{${e}} = e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this now actually true? At some point, some normalization was observable .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was in the patterns, not here.

@@ -78,7 +75,7 @@ The type signatures of quotes and splices can be described using
two fundamental types:

- `Expr[T]`: abstract syntax trees representing expressions of type `T`
- `Type[T]`: type structures representing type `T`.
- `Type[T]`: non erased representation of type `T`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above in line 48 you say "type structure"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is much more to improve in this document. Might need a full rewrite.

@nicolasstucki nicolasstucki merged commit 43a73a3 into scala:master Mar 27, 2021
@nicolasstucki nicolasstucki deleted the update-macros-md branch March 27, 2021 09:27
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.

2 participants