POV-Ray : Newsgroups : povray.off-topic : A Haskell question... : Re: A Haskell question... Server Time
10 Oct 2024 21:13:57 EDT (-0400)
  Re: A Haskell question...  
From: Invisible
Date: 4 Feb 2008 10:11:27
Message: <47a72b1f$1@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...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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