Skip to content

Back to the future: rewrite to inline #5109

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 6 commits into from
Sep 21, 2018

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Sep 14, 2018

As a first step, rename all occurrences of rewrite to inline.

inline is now a soft keyword, so it can still be used as an annotation.

As a first step, rename all occurrences of `rewrite` to `inline`.
Analogous to `&` and `|`, treat `inline` as an identifier but
intrepret it specially if it appears in places where it influences
the syntax.

This allows us to keep `@inline` as an annotation.
Need to introduce a side effect to avoid a "pure expression does nothing in statement position" warning.
@nicolasstucki nicolasstucki merged commit 999d1cb into scala:master Sep 21, 2018
@nicolasstucki nicolasstucki deleted the rewrite-to-inlined branch September 21, 2018 06:41
@Glavo
Copy link
Contributor

Glavo commented Sep 22, 2018

image
It seems that repl can't highlight the inline keyword now.

@nicolasstucki
Copy link
Contributor

Was it doing it before? I thought we never added highlight for it. Now we should.

@Glavo
Copy link
Contributor

Glavo commented Sep 22, 2018

image

@nicolasstucki The inline keyword will be highlighted in Dotty 0.9.0-RC1.

@nicolasstucki
Copy link
Contributor

Then I'll have a look at it. Thanks @Glavo.

@allanrenucci
Copy link
Contributor

@nicolasstucki This is fixed in #5137. Maybe you should review it

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