Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

CU-cn24gw CU-cn24dh Remove extension and higherkind annotations for Endo and Eval #316

Merged
merged 27 commits into from Feb 3, 2021

Conversation

danimontoya
Copy link
Contributor

@danimontoya danimontoya commented Jan 26, 2021

  • Remove extension annotation for Endo
  • Remove extension and higherkind annotations for Eval
  • Deprecate extension for Endo
  • Deprecate extension EvalApplicative
  • Deprecate extension EvalApply
  • Deprecate extension EvalBimonad
  • Deprecate extension EvalComonad
  • Deprecate extension EvalFunctor
  • Deprecate extension EvalMonad

@franciscodr
Copy link
Contributor

Task linked: CU-cn24dh Remove extension annotation Endo

@franciscodr
Copy link
Contributor

Task linked: CU-cn24gw Remove extension annotation Eval

@danimontoya danimontoya marked this pull request as draft January 26, 2021 13:08
Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Only combine missing on Endo itself.

@danimontoya danimontoya marked this pull request as ready for review January 29, 2021 11:24
Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of incorrect deprecations, and nits.
Great work!! 👏 👏

Copy link
Member

@nomisRev nomisRev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @danimontoya! 👏 👏 👏 Thanks 🙏

@danimontoya
Copy link
Contributor Author

@nomisRev thanks to you for all the reviews 🙌 😄

c: Eval<C>,
map: (A, B, C) -> D
): Eval<D> =
mapN(a, b, c, Unit, Unit, Unit, Unit, Unit, Unit, Unit) { aa, bb, cc, _, _, _, _, _, _, _ -> map(aa, bb, cc) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:
with the kotlin naming conventions wouldn't we define Unit starting with a lowercase letter same there too

val Unit: Eval<Unit> = Now(kotlin.Unit)
val True: Eval<Boolean> = Now(true)
val False: Eval<Boolean> = Now(false)
val Zero: Eval<Int> = Now(0)
val One: Eval<Int> = Now(1)

Copy link
Member

@i-walker i-walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @danimontoya 🙌
Just left a nit there, so those members are consistent across libraries in terms of naming conventions.

@danimontoya danimontoya merged commit b50b2b8 into master Feb 3, 2021
@danimontoya danimontoya deleted the dm-remove-extension-endo-eval branch February 3, 2021 11:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants