66
swapped
8y

*rejected* 🤣

Comments
  • 1
    But seriously what is an appropriate answer?
  • 0
    Checked the answer on Google ... I am willing to get rejected@arthur23
  • 4
    Refactor into more functions
  • 2
    @arthur23 The correct answer, assuming the language supports such a pattern, is using promises instead of callback closures.
  • 4
    @bittersweet or async await which has broader support across languages.

    You could also use coroutines or generators
  • 2
    @Positive07 Python spotted
  • 1
    Python, C#, JS and Lua are the languages I have used the most yeah hahaha.

    But I know Java also has async await and Go has goroutines which are coroutines...
  • 5
    He's not wrong you know.

    PS: The correct answer is the Promises or the observables.
  • 2
    @creator I know @bittersweet is not wrong, you aren't either.

    I was just pointing out some alternatives, since the solution depends on the language and it's features.
Add Comment