Jorge Castro
1 min readJul 18, 2019

--

As I said, it’s just an example.

For example

const sum= a => b => a + b;

First we are defining a function as a constant. How is it natural?

But even more, we couldn’t call the function as follow sum(1,2) cause it returns the definition of the function. It is mean to be parsed as an argument of a function, so we have a function that is coupled with another, it’s not safe to use everywhere and debugging is fun-for-the-family.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)

The author has closed discussion for this story. Learn more.