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

"smart constructors" and type parameters #2525

Closed
TomTriple opened this issue Sep 23, 2018 · 1 comment
Closed

"smart constructors" and type parameters #2525

TomTriple opened this issue Sep 23, 2018 · 1 comment

Comments

@TomTriple
Copy link
Contributor

TomTriple commented Sep 23, 2018

Validated.cond[A, B](test: Boolean, b: => B, a: => A):Validated[A,B]vs. Validated[+E, +A] -- actually I'd prefer that Validated.cond uses the same name and semantic for its type parameters as Validated.

In this case intellij would show that: Validated.cond[E, A](test: Boolean, a: => A, e: => E):Validated[E, A], which is properly aligned with the Validated type.

Is that confusing or is it just me?

@LukaJCB
Copy link
Member

LukaJCB commented Sep 24, 2018

Closed by #2527

@LukaJCB LukaJCB closed this as completed Sep 24, 2018
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

No branches or pull requests

2 participants