comp.lang.ada
 help / color / mirror / Atom feed
From: kevin  cline <kevin.cline@gmail.com>
Subject: Re: SI Units - has Ada missed the boat?
Date: Mon, 23 Jul 2007 05:29:55 -0000
Date: 2007-07-23T05:29:55+00:00	[thread overview]
Message-ID: <1185168595.983271.43740@d55g2000hsg.googlegroups.com> (raw)
In-Reply-To: <469dcbd2$0$21009$9b4e6d93@newsspool1.arcor-online.net>

On Jul 18, 3:17 am, Georg Bauhaus <bauhaus.rm.t...@maps.futureapps.de>
wrote:
> kevin cline wrote:
> > This is rather unwieldy since Java does not allow operator
> > overloading.  Who wants to read code like:
>
> >    time_aloft = sqrt(height.times(2).divide(g))
>
> I'd like to know why this programmer's expression of a formula
> for use by a computer is inferior, assuming the typical alternative
> would be[*]
>
>      time_aloft = sqrt((2 * height) / g))

With three thousand years of practice writing mathematical
expressions, symbolic operators are universally preferred over prosaic
expressions.  Would you also claim that:

  Let y = a times x times x plus b plus c

is just as easily grasped as:

  Let y = ax^2 + bx + c ?





  reply	other threads:[~2007-07-23  5:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-08 15:13 SI Units - has Ada missed the boat? Martin
2007-07-10  5:54 ` ME
2007-07-18  7:11 ` kevin cline
2007-07-18  8:17   ` Georg Bauhaus
2007-07-23  5:29     ` kevin cline [this message]
2007-07-23 18:43       ` Georg Bauhaus
2007-07-24  9:59         ` Colin Paul Gloster
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox