zsh-workers
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-workers@zsh.org
Subject: Re: Floating point modulus
Date: Sun, 11 Jan 2015 12:58:23 -0800	[thread overview]
Message-ID: <54B2E3EF.3080609@eastlink.ca> (raw)
In-Reply-To: <150111120042.ZM10088@torch.brasslantern.com>

On 01/11/2015 12:00 PM, Bart Schaefer wrote:
> On Jan 11, 11:25am, Ray Andrews wrote:
> }
> } Expectation you say.  Wouldn't it be polite for the docs to at least
> } mention that?
>
> The documentation has long been a sore spot, because it was originally
> written to only cover things that were different about zsh (from other
> shells)

You know, that is one of those sentences you make every now and then
that turns an entire fog bank into clear air.  *now* I understand how to
understand why the doc seems so faulty ... it was/is an addendum!
And it's been patched up ever since, but never was a 'full document'
from it's beginning, so of course it's full of gaps.
> } Perhaps it's presumptuous of me to discuss this, but could a
> } time not come when zsh is no longer chained to past practice?  When
> } decisions are based on merit, not on what ksh '79 did?
>
> Assuming I agree (which I don't) with your implication that decisions are
> not already based on merit:  so far you haven't convinced me that this
> would result in anything other than a lot of arguments about "merit."
Well, no doubt there would be some judgment calls on merit, no
avoiding that.  But since I've been involved ... actually the current
issue is a small but probably perfect test case. If one ignored past
practice and was concerned with maximum utility and most intuitive
implementation, and one was designing a shell that had a built in
calculator, and one was to decide what the answer should be to this
expression:

1/2 + 1/2 =

... I think we'd all agree the answer is '1'.  Why isn't it? Because
of past practice.  Thus Google's Library of Babel is plugged up with
people asking over and over again why shell arithmetic seems to be
busted. It's busted because of past practice.  The justification for
leaving it busted is just that it has always been busted, so should
always remain busted.  Is that merit?  I'll bet anyone 50 cents
that for every person who wants 1/2 + 1/2 = 0, there are a thousand
people who want it to equal one.


  reply	other threads:[~2015-01-11 20:58 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-09 12:43 PATCH: hist: remove wrong NULL terminator Mikael Magnusson
2015-01-09 17:45 ` Ray Andrews
2015-01-09 18:33   ` Lawrence Velázquez
2015-01-09 18:36     ` Lawrence Velázquez
2015-01-09 19:38   ` Mikael Magnusson
2015-01-09 21:39     ` Ray Andrews
2015-01-09 22:30       ` Peter Stephenson
2015-01-09 23:39         ` Ray Andrews
2015-01-10  0:39           ` Bart Schaefer
2015-01-10  7:45             ` Ray Andrews
2015-01-10 22:04               ` Lawrence Velázquez
2015-01-10 22:50                 ` Ray Andrews
2015-01-11  1:58                   ` Bart Schaefer
2015-01-11  5:46                     ` Ray Andrews
2015-01-11  7:10                       ` Floating point modulus Bart Schaefer
2015-01-11 17:33                         ` Peter Stephenson
2015-01-11 19:25                           ` Bart Schaefer
2015-01-11 19:25                         ` Ray Andrews
2015-01-11 20:00                           ` Bart Schaefer
2015-01-11 20:58                             ` Ray Andrews [this message]
2015-01-11 21:34                               ` Peter Stephenson
2015-01-12  0:18                                 ` Ray Andrews
2015-01-12 10:03                                   ` Peter Stephenson
2015-01-11 19:36                         ` Bart Schaefer
2015-01-11 20:01                           ` Peter Stephenson
2015-01-11 20:04                             ` Bart Schaefer
2015-01-11 20:25                               ` Peter Stephenson
2015-01-12  0:02                                 ` Ray Andrews
2015-01-12  2:23                                   ` Bart Schaefer
2015-01-12  2:46                                 ` Bart Schaefer
2015-01-12  9:56                                   ` Peter Stephenson
2015-01-12 13:49                                     ` Peter Stephenson
2015-01-12 16:35                                     ` Bart Schaefer
2015-01-12 16:45                                       ` Peter Stephenson
2015-01-12 11:36                           ` Vincent Lefevre
2015-01-10  7:08 ` PATCH: hist: remove wrong NULL terminator Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B2E3EF.3080609@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).