comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!libra ry.ucla.edu!ddsw1!news.kei.com!ub!dsinc!gvls1!lonjers@ucbvax.Berkeley.EDU  (Jim Lonjers)
Subject: Re: Underscore ("_") in numeric literals
Date: 28 Jul 93 05:41:48 GMT	[thread overview]
Message-ID: <1993Jul28.054148.18784@VFL.Paramax.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.
>
>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

We use _ in all of our constants of 5 digits or greater, and in many that
are four digits long.  Very useful.  The Ada POSIX standard (IEEE Std
1003.5) uses it in the version identifier that is really a date.  It
has the form of dd_dddd (yes, four digits to the right of the underscore).

             reply	other threads:[~1993-07-28  5:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-28  5:41 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!agate!libra [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-27 20:17 Robert Dewar
1993-07-27 15:33 Charles H. Sampson
1993-07-23 18:32 Mikey
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