Warp wrote:
> Orchid XP v7 <voi### [at] devnull> wrote:
>> data Point = Point {x, y :: Int}
>
>> Caution: Note that the names "x" and "y" must be unique within the
>> entire module. For this reason, you'd probably use longer names.
>
> Doesn't Haskell support encapsulation?
Define "encapsulation".
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|