How does one use cached data in a functional language such as Erlang?
问题 I've been reading a bit lately about functional languages. Coming from 10+ years of OO development, I'm finding it difficult to get my head around how on earth one can point the pure functional approach (i.e. the same method called with the same parameters does the same thing) at a problem where typically (in an OO program) I would need to cache data. Do we just admit that there might need to be an actor in the program which is not immutable (i.e. the cache). I just watched a presentation by