DEV Community


Discussion on: ✔||🤢 Commit or Vomit | function currying 🍛

jmdejager profile image
🐤🥇 Jasper de Jager Author

good question, it was meant as currying as a feature but... it is commit or vomit so I gues would you commit the code or not.

Thread Thread
darkwiiplayer profile image

In that case, what the code does would maybe better be described as "manual currying", as normally the word refers to something that happens automatically (often even on a language-level).

Doing this manually can be useful in edge-cases, but just currying every function for good measure is definitely a bad idea.

  • ✔ When done for a reason
  • 🤢 When overused