Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #2788
| From | "BartC" <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.programming |
| References | (10 earlier) <kcjk9h$fdr$1@dont-email.me> <SJdHs.469$2e1.31@fx04.fr7> <kcll2j$6vs$1@news.albasani.net> <SqyHs.1391$T67.1204@fx05.fr7> <kcn8d3$phv$1@news.albasani.net> |
| Subject | Re: EE or CS? |
| Message-ID | <CQGHs.1970$k04.1034@fx20.fr7> (permalink) |
| Organization | virginmedia.com |
| Date | 2013-01-10 21:58 +0000 |
"BGB" <cr88192@hotmail.com> wrote in message news:kcn8d3$phv$1@news.albasani.net... > On 1/10/2013 6:04 AM, BartC wrote: >> Even so, why choose a designation that is generally regarded as a valid >> decimal number in most other contexts? > putting 0 in front of numbers naturally results in evilness though, so why > do it?... It *will* be evil if it changes the value of the number! > most common I think is to pad and align numbers with spaces. That's true, but the language shouldn't really dictate number style. Leading zeros on decimals can be useful in a few situations, for the same sorts of reasons that they are useful in binary and hex: to delimit the number of digits more clearly, for example, or to highlight a pattern in the digits. Whatever. Making it mean octal isn't so useful! And the main point is, with octal being so rare, it can also cause unexpected bugs. > granted, yes, maybe "0o1234" or similar would be better. Or perhaps 8x1234, otherwise, written as 0O1234, it can look confusing. (For octal, I use either 1234x8, or 1234O, but that latter can also be written 1234'O. I doubt that will ever be used though.) >> These are just attributes, which are best used for appearance and style >> rather than completely changing the meaning of something. What next, >> colour? >> > > why not?... > (not being entirely serious here... but this is a logical extension...). If you want slow down productivity by an order of magnitude, then it's a great idea! However, the concept seems to work in colorForth. -- bartc
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
EE or CS? bob <bob@coolfone.comze.com> - 2013-01-08 09:28 -0800
Re: EE or CS? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-01-08 10:41 -0800
Re: EE or CS? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2013-01-08 21:41 +0100
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-01-08 20:50 +0000
Re: EE or CS? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2013-01-08 22:25 +0100
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-01-08 21:35 +0000
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-08 22:51 +0000
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-01-08 23:23 +0000
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-08 23:31 +0000
Re: EE or CS? Ian Collins <ian-news@hotmail.com> - 2013-01-09 12:58 +1300
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-01-09 01:35 +0000
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-09 02:13 +0000
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-01-09 11:28 +0000
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-09 12:51 +0000
Re: EE or CS? BGB <cr88192@hotmail.com> - 2013-01-09 23:52 -0600
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-10 12:04 +0000
Re: EE or CS? BGB <cr88192@hotmail.com> - 2013-01-10 14:28 -0600
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-10 21:58 +0000
Re: EE or CS? BGB <cr88192@hotmail.com> - 2013-01-10 18:25 -0600
Re: EE or CS? Patricia Shanahan <pats@acm.org> - 2013-01-09 05:35 -0800
Re: EE or CS? BGB <cr88192@hotmail.com> - 2013-01-09 22:43 -0600
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-10 12:22 +0000
Re: EE or CS? BGB <cr88192@hotmail.com> - 2013-01-10 14:20 -0600
Re: EE or CS? BGB <cr88192@hotmail.com> - 2013-01-09 22:15 -0600
Re: EE or CS? Ian Collins <ian-news@hotmail.com> - 2013-01-09 10:19 +1300
Re: EE or CS? "BartC" <bc@freeuk.com> - 2013-01-08 22:54 +0000
Re: EE or CS? Robert Miles <robertmilesxyz@gmail.com> - 2013-01-12 16:26 -0800
Re: EE or CS? Dan <dantex1@aol.com> - 2013-02-19 19:12 -0800
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-02-20 09:16 +0000
Re: EE or CS? Dan <dantex1@aol.com> - 2013-02-20 18:59 -0800
Re: EE or CS? Ian Collins <ian-news@hotmail.com> - 2013-02-21 16:40 +1300
Re: EE or CS? "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2013-02-21 11:45 +0100
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-02-21 11:45 +0000
Re: EE or CS? Rui Maciel <rui.maciel@gmail.com> - 2013-02-21 07:36 +0000
csiph-web