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

Make RichFile a value class #50

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Make RichFile a value class #50

merged 1 commit into from
Jun 26, 2017

Conversation

xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Jun 25, 2017

No description provided.

@dwijnand dwijnand merged commit ed914a3 into sbt:1.0 Jun 26, 2017
@xuwei-k xuwei-k deleted the value-class branch June 26, 2017 10:56
@eed3si9n
Copy link
Member

Why are we making this a value class?

@dwijnand
Copy link
Member

It's an enrich-my-type/syntax class, so we can avoid allocation.

@eed3si9n
Copy link
Member

eed3si9n commented Jun 29, 2017 via email

@dwijnand
Copy link
Member

It's a 1 line source code change, that has the effect of transforming

new RichFile(f).exists

into

RichFile.extension$exists(f)

Looks like a good trade-off, to me.

@eed3si9n
Copy link
Member

eed3si9n commented Jul 1, 2017

I was wondering why sbt/sbt couldn't just bump IO to latest, and realized that this change broke bincompat, so it needs to propagate to all modules first.

@dwijnand
Copy link
Member

dwijnand commented Jul 1, 2017

Yes, that is expected.

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.

3 participants