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 EAA23943; Thu, 7 Feb 2002 04:26:20 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id EAA03507 for ; Thu, 7 Feb 2002 04:26:20 +0100 (MET) Received: from ux9.sp.cs.cmu.edu (UX9.SP.CS.CMU.EDU [128.2.220.166]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id g173QJn00411 for ; Thu, 7 Feb 2002 04:26:19 +0100 (MET) Received: from 12-226-37-231.client.attbi.com ([12.226.37.231]) by ux9.sp.cs.cmu.edu id aa21740; 6 Feb 2002 22:25 EST Received: from ecc by stratocaster with local (Exim 3.33 #1 (Debian)) id 16YfBw-0000ef-00 for ; Wed, 06 Feb 2002 22:25:44 -0500 Date: Wed, 6 Feb 2002 22:25:44 -0500 To: caml-list@pauillac.inria.fr Subject: Re: [Caml-list] Suggestion for Int32.rotate Message-ID: <20020207032544.GA2482@cmu.edu> Mail-Followup-To: caml-list@pauillac.inria.fr References: <20020205000643.A31440@gogol.zorgol> <20020206190151.A9371@pauillac.inria.fr> <20020206210814.A15985@verdot.inria.fr> <3C61958D.C03D2463@decis.be> <20020207020735.A577@ice.gerd-stolpmann.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020207020735.A577@ice.gerd-stolpmann.de> User-Agent: Mutt/1.3.25i From: "Eric C. Cooper" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Feb 07, 2002 at 02:07:35AM +0100, Gerd Stolpmann wrote: > Why not allow "_" in integer literals, so one can write > > 12345_i32, 123456789_i64, 123_456_789_i64, 123456789_nat, > 123456789_big (for bigints). I think this kind of suffix is easier > to remember than a single letter. I like Gerd's suggestion. Two others: - Please support both signed and unsigned (or "int" and "card") literals of each width, perhaps using _s32 and _u32 etc. We would also need the unsigned analogs of Int32 and Int64 modules. - Slightly off-topic: add hexadecimal character literals '\0xNN' At least once a year, I assume that '\010' should be *octal* 10, like in C. Since you can't fix that without breaking old code, it would be nice to have the option of using hex char literals in new code. Of course the meta-solution would be for Daniel to give us an extensible lexer. :-) -- Eric C. Cooper e c c @ c m u . e d u ------------------- 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