[Haskell-cafe] A functional programming solution for Mr and Mrs Hollingberry
Ketil Malde
ketil at malde.org
Sun May 27 11:06:09 CEST 2012
Andreas Pauley <apauley at gmail.com> writes:
> Do you know of an exercise where classes would add value? Something
> fairly small, roughly similar in size to this exercise.
AFAICR, the motivating example for OO (in Simula) was simulating an
environment where different entities interact - I think the case was
queues in a post office, where object represents the door, customers,
tellers, etc. Perhaps something along those lines?
-k
--
If I haven't seen further, it is by standing in the footprints of giants
More information about the Haskell-Cafe
mailing list