Enum class

Max Kirillov [email protected]
Tue, 23 Oct 2001 22:08:02 +0700

On Tue, Oct 23, 2001 at 12:27:37PM +0200, Ch. A. Herrmann wrote:
> Removing them would possibly cause problems with existing programs 
> and this is definitely not my aim. However, it'll make sense to 
> think about long-term improvements. I wouldn't call Float and Double 
> enumeration types. Maybe, a just misunderstood what Enum means.

At a first glance, I would suppose than the construction
[a,b..{,c}] is valid not only for Enum classes, but also for
any Num class (any which have (+) operation). I woud say it
is quite naturally.

I don't know if it possible now to define the same operation
(enumFromThen) for two classes, but newcoming advances about
polymorphism could enable this.

Anyway, haskell world (as I could notice) would not be
surprised by this little incompatibility.