comp.lang.ada
 help / color / mirror / Atom feed
From: psinntp!vitro.com!news@uunet.uu.net  (Mikey)
Subject: Re: Underscore ("_") in numeric literals
Date: 23 Jul 93 18:32:55 GMT	[thread overview]
Message-ID: <1993Jul23.183255.588@vitro.com> (raw)

In article <22lte3$nqm@nic.lth.se> dag@control.lth.se (Dag Bruck) writes:
>
>I would like to know to what extent people use undescore ("_")
>characters in numeric literals, e.g., "100_000".  Please send me your
>opinions, etc.
>
>I would be particularly grateful if people could point me to Ada
>source archives so I can make some simple statistical analysis of real
>code, or if you would like to "grep" your own code and let me know
>what you got.
>
>The reason is that the C++ standardization committees have received a
>proposal to allow "_" in numeric literals.  We are interested in some
>sort of indication if people find this feature useful, and if it is
>commonly used in languages that have it.  If nobody uses "_" there is
>no reason to add it to C++, and if it provides a significant
>improvement in readability, C++ could use all the help it can get :-)
>
>
>			Thanks for your help,
>
>			Dag Bruck
>

As an amateur astronomer, I write many programs that involve numerical
analysis, orbit determination, orbit plots, etc., etc. I find that I use alot
of numerical constants in double-precision that I believe would be much easier
to update (when necessary - most astronomical constants don't change much :) )
and/or examine if I had the use of the "_". My Ada usage is limited to at work,
where I am the company's Ada instructor. I personally like the "_" and would
like to see it in C++. As for amount of usage; I would say about 10-20% of the
time in product code, but almost 100% in my sample code and exercises for my
Ada course material.

Mike M.
         __________________________________________________________________
        / Michael J. Mangieri                 Internet: mmangieri@vitro.com
__     /  Vitro Corporation                      Voice:      (301) 231-3016
  \   /   MX-SP 4-2311                             FAX:      (301) 231-1233
   \ /    14000 Georgia Ave.              
    *     Silver Spring, MD 20906-2972    

         "Everything should be made as simple as possible, but not simpler."
                                                       - A. Einstein

             reply	other threads:[~1993-07-23 18:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-23 18:32 Mikey [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-04 16:04 Underscore ("_") in numeric literals cis.ohio-state.edu!math.ohio-state.edu!sdd.hp.com!saimiri.primate.wisc.ed
1993-08-04 14:43 agate!howland.reston.ans.net!europa.eng.gtefsd.com!news.ans.net!newsgate.watson.ibm.com!yktnews.watson.ibm.com!ncohen
1993-07-28 14:22 Mike Berman
1993-07-28  5:43 Dag Bruck
1993-07-28  5:41 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!libra
1993-07-27 20:17 Robert Dewar
1993-07-27 15:33 Charles H. Sampson
1993-07-22 11:24 Dag Bruck
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox