News for hackers. Stuff that matters.
Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by todd_wanna_code on Thursday February 15, 2018 @11:02PM (#16389761)
> There are still places where callbacks are better)

Like? I am genuinely interested in knowing the drawbacks of promises and places where a callback like structure is more favourable. By the way, I am not contradicting you, just trying to learn.

Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by imtringued on Friday February 16, 2018 @09:01AM (#16392330)
A promise can only be activated once. You still have to use callbacks for buttons and other things that can be activated more than once.
Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by shados on Friday February 16, 2018 @08:58AM (#16392317)
foo.map(x => x * 2);

Not sure I'd want to use a promise there :)