caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Eric C. Cooper" <ecc@cmu.edu>
To: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Suggestion for Int32.rotate
Date: Wed, 6 Feb 2002 22:25:44 -0500	[thread overview]
Message-ID: <20020207032544.GA2482@cmu.edu> (raw)
In-Reply-To: <20020207020735.A577@ice.gerd-stolpmann.de>

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


  parent reply	other threads:[~2002-02-07  3:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-04 23:06 Berke Durak
2002-02-06 18:01 ` Xavier Leroy
2002-02-06 20:08   ` Daniel de Rauglaudre
2002-02-06 20:43     ` Frederic van der Plancke
2002-02-06 22:40       ` Chris Hecker
2002-02-07  1:07       ` Gerd Stolpmann
2002-02-07  3:05         ` Brian Rogoff
2002-02-07  3:25         ` Eric C. Cooper [this message]
2002-02-07 13:49         ` Thorsten Ohl
2002-02-07 13:55           ` Remi VANICAT
2002-02-07 16:32             ` [Caml-list] More syntax: _ in numbers, backquote infix op's Christian Lindig
2002-02-06 21:02   ` [Caml-list] integer types and their literals james woodyatt
2002-02-06 21:36   ` [Caml-list] Suggestion for Int32.rotate Berke Durak
2002-02-07  1:15 ` Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020207032544.GA2482@cmu.edu \
    --to=ecc@cmu.edu \
    --cc=caml-list@pauillac.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).