
14 Dec
2015
14 Dec
'15
1:28 a.m.
Am 14.12.2015 um 01:28 schrieb Kim-Ee Yeoh:
On Mon, Dec 14, 2015 at 3:15 AM, martin
wrote: I started like this
data C a = C { insert :: a -> Maybe (C a), remove :: Maybe (a, C a) }
but I could not implement anything sensible on top of this.
And the reason you're stuck implementing anything sensible on top of this is because you've written an OOP-style specification of a data structure.
Mmm... this is the second time this has been raised. What's the problem with OOP style? Something specific with Haskell, something about OOP in general, something else? Regards, Jo