POV-Ray : Newsgroups : povray.off-topic : A Haskell question... : Re: A Haskell question... Server Time
10 Oct 2024 21:17:31 EDT (-0400)
  Re: A Haskell question...  
From: Nicolas Alvarez
Date: 4 Feb 2008 10:16:03
Message: <47a72c33@news.povray.org>

> 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...
> 

Without knowing a single thing about haskell, "module" *sounds* to me 
like a Java package, not a class...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.