|
|
Warp wrote:
> Doesn't Haskell support encapsulation?
Last time I checked, Java has the same limitation.
In a single Java class, all methods must have unique names. (Ignoring
for a moment the fact that Java supports overloading which Haskell
doesn't.) Similarly, in a Haskell module all function names must be unique.
Either way, you can't use the same name for multiple things in a single
source code file, in either language. And yet I don't see people
claiming that Java doesn't "support encapsulation". So I'm not sure what
you're getting at...
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
|