Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #11869

Re: Structure without a tag

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: Structure without a tag
Date Tue, 18 Oct 2011 12:54:44 -0400
Organization A noiseless patient Spider
Lines 26
Message-ID <4E9DAF54.7050600@verizon.net> (permalink)
References <ea62ba19-4091-4bf8-992c-61676bfcd36a@ff5g2000vbb.googlegroups.com> <j7ctbe$pp4$1@dont-email.me> <4E9AE7ED.3C025A9B@btinternet.com> <slrnj9mlh2.1bk.grahn+nntp@frailea.sa.invalid> <j7flu0$5su$1@dont-email.me> <j7frga$8ou$1@dont-email.me> <20111017125705.251@kylheku.com> <4E9C6BA2.2030504@verizon.net> <X9GdnYxKQKO5rgDTnZ2dnUVZ_s-dnZ2d@posted.internetamerica> <j7jms3$lbb$1@dont-email.me> <86lisi70k3.fsf@zipcon.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="2P71cupDoazVVolqpw1jrw"; logging-data="2185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19OaH4J3qh6iYYW8WAiUqB8yr+Ndjwnklk="
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15
In-Reply-To <86lisi70k3.fsf@zipcon.net>
Cancel-Lock sha1:IZWq4SndIkyB5be6GX2GR4O4cWY=
Xref x330-a1.tempe.blueboxinc.net comp.lang.c:11869

Show key headers only | View raw


On 10/18/2011 11:59 AM, Patrick Scheible wrote:
> James Kuyper <jameskuyper@verizon.net> writes:
> 
>> No, you need a different unit for each currency.
> 
> Currencies are a mess.  Not only are they not comparable from country to
> country, but they are not comparable from time period to time period.
> Even the way they are adjusted for inflation is a political process.
> People with different agendas pick measures of inflation that emphasize
> or deemphasize it.  Making those choices, I think, is beyond the scope
> of a programming language.

I want to emphasize that what I'm about to say is NOT a proposed change
to C; just a feature that it would be entirely feasible to put in a new
language, and one that may be similar to a feature already supported by
some language I'm not familiar with:

It would be quite feasible for a programming language to enforce
dimensional analysis rules, and allow user-define dimensions such as
dollars_now and dollars_then. The user could then declare that
inflation_factor has the units "dollars_now / dollars_then". A program
that used a fixed reference year could define a unit such as dollars_2005.

Defining a system where a unit could be parametrized, such as
dollars['2011-10-18'] would be possible, but much more complicated, and
probably not worthwhile.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Structure without a tag Максим Фомин <maxim@maxim-fomin.ru> - 2011-10-15 13:20 -0700
  Re: Structure without a tag Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-15 17:16 -0400
    Re: Structure without a tag Frederick Williams <freddywilliams@btinternet.com> - 2011-10-16 15:19 +0100
      Re: Structure without a tag Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-16 10:30 -0400
      Re: Structure without a tag Keith Thompson <kst-u@mib.org> - 2011-10-16 13:54 -0700
      Re: Structure without a tag Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-10-16 22:09 +0000
        Re: Structure without a tag Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-16 18:29 -0400
          Re: Structure without a tag "BartC" <bc@freeuk.com> - 2011-10-16 23:55 +0100
            Re: Structure without a tag blp@cs.stanford.edu (Ben Pfaff) - 2011-10-16 17:31 -0700
          Re: Structure without a tag James Kuyper <jameskuyper@verizon.net> - 2011-10-16 20:05 -0400
            Re: Structure without a tag Kaz Kylheku <kaz@kylheku.com> - 2011-10-17 17:02 +0000
              Re: Structure without a tag James Kuyper <jameskuyper@verizon.net> - 2011-10-17 13:53 -0400
                Re: Structure without a tag Robert Wessel <robertwessel2@yahoo.com> - 2011-10-17 13:38 -0500
                Re: Structure without a tag Максим Фомин <maxim@maxim-fomin.ru> - 2011-10-17 22:28 -0700
                Re: Structure without a tag gordonb.b1148@burditt.org (Gordon Burditt) - 2011-10-18 03:04 -0500
                Re: Structure without a tag Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-10-18 01:37 -0700
                Re: Structure without a tag James Kuyper <jameskuyper@verizon.net> - 2011-10-18 07:10 -0400
                Re: Structure without a tag gwowen <gwowen@gmail.com> - 2011-10-18 08:43 -0700
                Re: Structure without a tag James Kuyper <jameskuyper@verizon.net> - 2011-10-18 11:55 -0400
                Re: Structure without a tag "BartC" <bc@freeuk.com> - 2011-10-18 17:18 +0100
                Re: Structure without a tag Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2011-10-18 15:09 -0600
                Re: Structure without a tag Patrick Scheible <kkt@zipcon.net> - 2011-10-18 08:59 -0700
                Re: Structure without a tag James Kuyper <jameskuyper@verizon.net> - 2011-10-18 12:54 -0400
                Attributions (was Re: Structure without a tag) Keith Thompson <kst-u@mib.org> - 2011-10-18 11:48 -0700
                Re: Structure without a tag Stephen Sprunk <stephen@sprunk.org> - 2011-10-18 16:20 -0500
    Re: Structure without a tag Tim Rentsch <txr@alumni.caltech.edu> - 2012-01-24 18:05 -0800
  Re: Structure without a tag Keith Thompson <kst-u@mib.org> - 2011-10-15 16:30 -0700
  Re: Structure without a tag Jean-Christophe <5.d@free.fr> - 2011-10-16 09:54 -0700

csiph-web