Stav Alfi
1 min readJul 30, 2020

--

thanks for the article but thats a really bad solution to the problem: (1) you lost the type of the return value. (2) the developer can easly pass the wrong argument(s).

all in all, the solution you propose is the exact same as the initial solution.

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

--

--

No responses yet

Write a response