@Krux02, did you replied the TS code or my tokenize2 ? For removing ref in ref object, I agree. I usually code in value-type instead ref-type, as I only use ref-type when it's usually wrap around costly resource, like socket, heaped memory, file i/o.
Agree too with coding by setting pointer for current and latest , that style is discouraged.
