Hacker News new | past | comments | ask | show | jobs | submit login

> I think it's simpler to pass state as an argument to your functions instead. That's less complex and easier to test.

I completely agree with that sentiment. But I prefer to execute those functions with swap! on my application state.

That way I can always inspect it in the repl during development and production. Which is not so easy when it's just bound in the local variable of some thread somewhere.

As for transducers, tbh I haven't encountered the use case you describe yet.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: