Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #1788
| From | "BartC" <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: commas |
| Date | 2012-06-12 18:05 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <jr7su5$b32$1@dont-email.me> (permalink) |
| References | <f0d3d247-8eac-4ce0-bb61-296a58ea2035@googlegroups.com> <XaKBr.14619$hJ3.3099@newsfe14.iad> |
"Daniel Pitts" <newsgroup.nospam@virtualinfinity.net> wrote in message news:XaKBr.14619$hJ3.3099@newsfe14.iad... > On 6/12/12 7:09 AM, bob wrote: >> Are there any languages where you can actually use commas in the numbers? > I believe Java 7 has that capability, sort of. > > Instead of "," you use "_", but the idea is the same, grouping digits > > int x = 5_000_000; > > equivalent to > > int x = 5000000; > > Honestly, I think this should be a function of the editor, and not the > language itself, but I haven't seen an IDE that abstracts the programming > language that extensively but remains useful. You could argue that half the syntax in a language could be the responsibility of the editor. For example, the language proper might only have hexadecimal constants, leaving it to the editor to display as decimal. Obviously that would have all sorts of disadvantages (when posting code to a group such as this for example). But why would it be such a big deal for language syntax to help out with this sort of stuff? (And if anyone knows the answer to that, perhaps they can tell me why you can't, generally, have embedded spaces when entering a credit-card number on-line, so that it matches the way it is shown on the card and is far easier to check.) -- Bartc
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar
commas bob <bob@coolfone.comze.com> - 2012-06-12 07:09 -0700
Re: commas Robert Wessel <robertwessel2@yahoo.com> - 2012-06-12 09:16 -0500
Re: commas BGB <cr88192@hotmail.com> - 2012-06-12 09:53 -0500
Re: commas "BartC" <bc@freeuk.com> - 2012-06-12 16:33 +0100
Re: commas Paul Herber <paul@pherber.com> - 2012-06-12 15:37 +0100
Re: commas Rui Maciel <rui.maciel@gmail.com> - 2012-06-12 16:14 +0100
Re: commas "BartC" <bc@freeuk.com> - 2012-06-12 16:37 +0100
Re: commas Rui Maciel <rui.maciel@gmail.com> - 2012-06-12 17:10 +0100
Re: commas Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-12 09:32 -0700
Re: commas Ben Pfaff <blp@cs.stanford.edu> - 2012-06-12 09:54 -0700
Re: commas "BartC" <bc@freeuk.com> - 2012-06-12 18:05 +0100
Re: commas Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-12 11:51 -0700
Re: commas "BartC" <bc@freeuk.com> - 2012-06-12 20:36 +0100
Re: commas Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-06-12 16:28 -0700
Re: commas Thad Smith <ThadSmith@acm.org> - 2012-06-17 22:38 -0600
Re: commas Robert Wessel <robertwessel2@yahoo.com> - 2012-06-18 00:02 -0500
Re: commas blmblm@myrealbox.com <blmblm.myrealbox@gmail.com> - 2012-07-06 19:01 +0000
Re: commas Jongware <jongware@no-spam.plz> - 2012-07-30 15:53 +0200
Re: commas "BartC" <bc@freeuk.com> - 2012-07-30 15:50 +0100
Re: commas "BartC" <bc@freeuk.com> - 2012-08-01 01:56 +0100
Re: commas Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-08-01 03:31 +0100
Re: commas rossum <rossum48@coldmail.com> - 2012-07-30 19:57 +0100
Re: commas Fritz Wuehler <fritz@spamexpire-201207.rodent.frell.theremailer.net> - 2012-07-30 22:14 +0200
Re: commas Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-07-30 23:00 +0100
csiph-web