[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell-cafe
Subject:    Re: efficiency
From:       "Marcin 'Qrczak' Kowalczyk" <qrczak () knm ! org ! pl>
Date:       2002-01-16 21:17:29
Message-ID: slrna4brf9.r8h.qrczak () qrnik ! zagroda
[Download RAW message or body]

Tue, 15 Jan 2002 13:06:58 +0100, Rijk-Jan van Haaften <rjchaaft@cs.uu.nl> pisze:

> This feature is one I consider among the worst in Haskell. If
> a datatype with just a single constructor can be optimized away,

It can't. newtype has a different semantics than data, as others
explained. It would be weird if data had non-uniform semantics for
the one-constructor-with-one-field case, even though usually newtype
is the variant we prefer.

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^
QRCZAK



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic