CU-cn24gw CU-cn24dh Remove extension and higherkind annotations for Endo and Eval #316
Conversation
danimontoya
commented
Jan 26, 2021
•
edited
edited
- 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
Task linked: CU-cn24dh Remove extension annotation Endo |
Task linked: CU-cn24gw Remove extension annotation Eval |
arrow-core/src/main/kotlin/arrow/core/extensions/endo/monoid/EndoMonoid.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
Deprecate extension methods for EvalApply.kt
…deprecated functions with *Kind
… time is increasing
# Conflicts: # arrow-core-data/src/main/kotlin/arrow/core/Eval.kt
Remove zip64 flag
There was a problem hiding this 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!! 👏 👏
arrow-core/src/main/kotlin/arrow/core/extensions/endo/monoid/EndoMonoid.kt
Outdated
Show resolved
Hide resolved
arrow-core/src/main/kotlin/arrow/core/extensions/eval/applicative/EvalApplicative.kt
Outdated
Show resolved
Hide resolved
arrow-core/src/main/kotlin/arrow/core/extensions/eval/applicative/EvalApplicative.kt
Outdated
Show resolved
Hide resolved
arrow-core/src/main/kotlin/arrow/core/extensions/eval/apply/EvalApply.kt
Outdated
Show resolved
Hide resolved
arrow-core/src/main/kotlin/arrow/core/extensions/eval/apply/EvalApply.kt
Outdated
Show resolved
Hide resolved
arrow-core/src/main/kotlin/arrow/core/extensions/eval/apply/EvalApply.kt
Outdated
Show resolved
Hide resolved
arrow-core/src/main/kotlin/arrow/core/extensions/eval/apply/EvalApply.kt
Outdated
Show resolved
Hide resolved
arrow-core/src/main/kotlin/arrow/core/extensions/eval/comonad/EvalComonad.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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 🙏
@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) } |
There was a problem hiding this comment.
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
arrow-core/arrow-core-data/src/main/kotlin/arrow/core/Eval.kt
Lines 175 to 183 in 01781b8
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) |
There was a problem hiding this 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.