Message from JavaScript discussions

July 2017

— I mean, from months ago when I first wrote it


function newIterationState() {
return {
continue: true,
skipNode: false,
tuple: {},
iterations: 0,
length: 0,
existing: null,
isContainer: false,
invertedIndex: false,
isLast: false,
isFirst: true,
loc: null

— Very obscure how this changes behavior, the IDDFS poops it out on every iteration next

— IDDFS mutate this, then the external diff and clone functions mutate it

— It is a nasty thing

— Ugh

— Don't use new in object creators

— createIterationState

— KEK, wording 😂😂

— Because it's crap :P

— Are all of those really used / needed?

— Yeah