Message from JavaScript discussions

May 2017

— Oh god


So the main algorithm uses iterator protocol, but you can also use the Strategy interface which behaves just like an ioc callback

— `var alg =
new Strategy(onFirst, onAll);
var result =;

— Ooh

— How many of you use vim?

— So depth-first is faster, since IDDFS will potentially visit the same nodes multiple times?

— Sometimes, not as main editor

— +1

— Do you use vim

— That shunts the iterator protocol into a callback interface. Otherwise you can talk to the traversal algorithm directly via:
var traversal = iddfs(object);
var iteration =;
var flyweight = iteration.value;

Message permanent page

— Do you write react as well?

— Do you write react?