Re:Temporal Programming, a new name for an old paradigm
by togaen on Sunday November 27, 2022 @04:20PM
(#33767094)
Property 2 implies immutable state. I also used to think that was a great idea. Then I tried actually programming that way.
[ Parent
| on HN ]
Re:Temporal Programming, a new name for an old paradigm
by AlchemistCamp on Sunday November 27, 2022 @04:36PM
(#33767234)
I’ve done most my programming in the past several years in Elixir, where mutable variables aren’t an option, and it’s been a great dev experience. An entire class of bugs disappears and it makes concurrency very easy to reason about.
Re:Temporal Programming, a new name for an old paradigm
by macintux on Sunday November 27, 2022 @07:24PM
(#33768445)
After spending a few years in Erlang, it's hard (and depressing) to go back to any other way of programming.
Re:Temporal Programming, a new name for an old paradigm
by dkersten on Monday November 28, 2022 @04:04AM
(#33771301)
I’ve written a lot of Clojure and Clojurescript over the past ~12 years and I find it a very natural way to program to the point that it’s the single biggest thing I miss when I work in other languages like javascript and Python.
Re:Temporal Programming, a new name for an old paradigm
by aappleby on Monday November 28, 2022 @05:56PM
(#33781059)
Author here. State is not immutable, it is mutate-in-place via atomic swap. That makes it somewhat different than both functional programming and imperative programming, but it's not an excessively difficult programming style to use in practice.