r/Clojure • u/dustingetz • Mar 23 '26
On Functional Programming, Time, and Concurrency — Dustin Getz
https://gist.github.com/dustingetz/94c48ff7e9d2af93bae74d9b244fb79e
40
Upvotes
r/Clojure • u/dustingetz • Mar 23 '26
View all comments
2
u/geokon Mar 25 '26 edited Mar 25 '26
I get your point, but I think the opening overplays your hand, or at least the emailer has a point that's not really being acknowledged
But your solution is actually constrained - which you kind of indirectly acknowledge later..
So while the solution is more general than a fully declarative "ballistics calculation" - it's very cool you're able to fold in undo-ables in to your functional world - you've got to admit it doesn't solve the full range of possible problems.
If your code instructs your car to accelerate, you can't really "undo" that to get to your previous position and velocity. If the bitcoins are sent off there is no going back :)