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

Deprecate auto in favor of semiauto #212

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Conversation

joroKr21
Copy link
Member

@joroKr21 joroKr21 commented Dec 7, 2019

semiauto doesn't use Lazy.

That improves compile time performance marginally and has better error messages on Scala 2.13.
Moved semiauto test instances to companion objects to ensure serializability.

This would have to go into a 2.1.0 release.

@joroKr21 joroKr21 added this to the 2.1.0 milestone Dec 7, 2019
@joroKr21 joroKr21 self-assigned this Dec 7, 2019
@joroKr21
Copy link
Member Author

joroKr21 commented Dec 7, 2019

Ahh, looks like unlike by-name implicits, shapeless' Lazy doesn't work in this case 😞

So we're stuck with the degraded error messages on 2.13 I'm afraid.

@joroKr21
Copy link
Member Author

New idea - we can make semiauto version specific. On 2.11 and 2.12 it will be an alias to semi and on 2.13 it will be without Lazy - not sure if this is a good idea or not.

@kailuowang
Copy link
Contributor

That sounds good to me.

`semiauto` doesn't use `Lazy`.

That improves compile time performance marginally
and has better error messages on Scala 2.13.
@joroKr21 joroKr21 merged commit b21641f into typelevel:master Apr 21, 2020
@joroKr21 joroKr21 deleted the semiauto branch April 21, 2020 12:25
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.

None yet

2 participants