Capitolo 1 - Currying a 3 parametri #26
arialdomartini
started this conversation in
Games
Replies: 2 comments 4 replies
-
poi la domanda diventa: faccio la curry per leggere meglio, ma la function che mi da la curried si complica nella lettura se aumento i parametri...quali sono i confini di utilità? |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
In effetti se avessi bisogno di più di una funzione di DB il gioco non vale
la candela
Matteo
…On Sat, Feb 6, 2021, 09:03 Arialdo Martini ***@***.***> wrote:
Sì.
Puoi fare la stessa cosa con Dependency Injection, comunque.
localdb inoltre ha side effect. Come racconta Mark Seemann in quel post,
usare la partial application per emulare una Dependency Injection funziona,
ma risulta in una soluzione non functional.
Dal capitolo 4 in poi inizieremo a vedere altri approcci, come la IO Monad.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZAOD66U32RFLXKSZUOXDDS5TZVLANCNFSM4WXY7DZQ>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Implementare una funzione che restituisca la versione curried di una qualunque funzione a 3 parametri:
Beta Was this translation helpful? Give feedback.
All reactions