comp.lang.ada
 help / color / mirror / Atom feed
From: sampson@cod.nosc.mil  (Charles H. Sampson)
Subject: Re: Underscore ("_") in numeric literals
Date: 27 Jul 93 15:33:23 GMT	[thread overview]
Message-ID: <1993Jul27.153323.17551@nosc.mil> (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.

     When I first saw the "underscore in numeric literals" feature I said,
"Interesting frill, but who cares?"  After all, my first non-assembly pro-
gramming was in FORTRANSIT and I have lots of experience in reading 10-digit
decimal literals.

     My style has since evolved to the point that I use the underscore in
any decimal literal longer than five digits.  That's on either side of the
decimal point.  When working with bit strings (base 2) I used it every
fourth bit to highlight the nybble boundaries.  I'd hate to do without it.

     Most of the people in my shop (who are admittely heavily influenced by
me) do the same.

				Charlie

             reply	other threads:[~1993-07-27 15:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-27 15:33 Charles H. Sampson [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-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