clj-auto-diff icon indicating copy to clipboard operation
clj-auto-diff copied to clipboard

Avoid mutable global atom in core namespace

Open paul-english opened this issue 10 years ago • 0 comments

I ported this library from an earlier scheme library which made use of a global var e. This is used as a counter in forward-mode and reverse-mode. This can be refactored so that the state isn't global and works with concurrent code.

It should require passing the state locally when calling a function that uses forward or reverse mode.

paul-english avatar Nov 03 '14 16:11 paul-english