From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA30460; Sun, 5 Aug 2001 15:07:11 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA30456 for ; Sun, 5 Aug 2001 15:07:10 +0200 (MET DST) Received: from mail.mimuw.edu.pl (po15.warszawa.cvx.ppp.tpnet.pl [213.76.110.15]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f75D5KH18950 for ; Sun, 5 Aug 2001 15:05:29 +0200 (MET DST) Received: (from news@localhost) by mail.mimuw.edu.pl (PLD/8.9.3) id OAA10200 for caml-list@inria.fr; Sun, 5 Aug 2001 14:57:09 +0200 X-Authentication-Warning: qrnik.zagroda: news set sender to Marcin 'Qrczak' Kowalczyk using -f From: "Marcin 'Qrczak' Kowalczyk" Subject: Re: [Caml-list] Why can't I use constructors as functions? Date: 5 Aug 2001 12:57:06 GMT Organization: Klub Nieszkodliwych =?iso-8859-2?Q?Manjak=F3w?= Message-ID: References: <20010803101651.C29703@pauillac.inria.fr> <9kffrd$72l$1@qrnik.zagroda> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-Trace: qrnik.zagroda 997016226 10158 192.168.0.1 (5 Aug 2001 12:57:06 GMT) X-Complaints-To: news@qrnik.zagroda NNTP-Posting-Date: 5 Aug 2001 12:57:06 GMT X-Licznik: 24270 User-Agent: slrn/0.9.7.0 (pl-1.1.0) (Linux/2.2.17 (i686)) To: caml-list@inria.fr Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Fri, 3 Aug 2001 12:00:17 +0200, Markus Mottl pisze: > The language would seem much more regular to me if functions and > constructors were treated in a similar way. Would this be too big a > change to the core language? It's a change to the syntax, not to the core language. Revised syntax uses curried constructors, with declaration of a constructor looking like this: ... | C of int and string | ... -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ SYGNATURA ZASTĘPCZA QRCZAK ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr