-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support non-trivial lambdas in Scala-style rendering format #384
Labels
Comments
/bounty $150 |
💎 $150 bounty • ZIOSteps to solve:
Thank you for contributing to zio/izumi-reflect! Add a bounty • Share on socials
|
/attempt #384
|
@varshith257: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
The bounty is up for grabs! Everyone is welcome to |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
In current implementation of
LightTypeTag#scalaStyledName
it's impossible to distinguish[A, B] =>> Either[A, B]
and[A, B] =>> Either[B, A]
lambdas since they both end up printed asEither[_, _]
.To fix this, we should add a check for whether it's correct to use
_
-placeholders when printing a lambda - it's only correct when all lambda parameters are applied and in the same order as they were declared. If not, we should print a long lambda form such as[A, B] =>> Either[A, B]
./cc @Ivoyaa
The text was updated successfully, but these errors were encountered: