unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jay Belanger <jay.p.belanger@gmail.com>
To: emacs-devel@gnu.org
Cc: jay.p.belanger@gmail.com
Subject: Re: Calc: `*' binds more strongly than `/'
Date: Thu, 26 Apr 2007 20:27:44 -0500	[thread overview]
Message-ID: <877iry4ne7.fsf@gmail.com> (raw)
In-Reply-To: <f0r48r$9sv$2@sea.gmane.org> (Christian Schlauer's message of "Thu\, 26 Apr 2007 23\:07\:45 +0200")


Christian Schlauer <cs-muelleimer-rubbish.bin@arcor.de> writes:

[from wikipedia]
>>   Proper use of parentheses and other grouping symbols
...
> I saw those examples, too, but didn't read the text of that section,

The key thing from that section, I think, is the statement that
parentheses should be used generously, and 
   6) Whenever anything can be interpreted multiple ways, put the part
   to be done first in parentheses, to make it clear.

>> Well, wikipedia also says
>>
>>   Calculators
>>
>>   Different calculators follow different orders of operations.
>>
>> and gives several examples.
>
> But these examples refer to only two cases:

The examples weren't meant to be comprehensive, but only to make the
point that different calculators do things differently.

>> For those that really don't like parentheses, an option to allow the
>> user to decide for themselves the relative precedence of * and / in
>> Calc will be added, of course.
>
> That sounds good, but what will be the default?

Calc's current behavior will be the default.  It is Calc's established
behavior.  It has its detractors, but it also has its proponents and
its advantages.  I also feel that in any expression where it matters
(whether it's being typed into Calc, Gnumeric or anything else)
the parentheses should be included.  Leaving them out is, in my
opinion, bad style.  (I've been using the word "form"; "style" is
probably a better word.) Anyone who insists on avoiding the
parentheses and wants the alternate behavior can change the option
(which I'll add as soon as changes in Emacs are allowed ...)

Jay

  reply	other threads:[~2007-04-27  1:27 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-14 11:57 Calc: `*' binds more strongly than `/' Christian Schlauer
2007-04-14 15:09 ` Jay Belanger
2007-04-15 19:21   ` Chong Yidong
2007-04-15 20:05     ` Stefan Monnier
2007-04-17 12:47       ` Randal L. Schwartz
2007-04-17 18:03         ` Stefan Monnier
2007-04-18  8:44           ` Kim F. Storm
2007-04-18 19:27             ` Stefan Monnier
2007-04-18 20:02               ` Davis Herring
2007-04-18 20:16                 ` David Kastrup
2007-04-18 21:43                   ` Davis Herring
2007-04-19 16:10                 ` Stefan Monnier
2007-04-20 11:13                   ` Randal L. Schwartz
2007-04-20 13:40                     ` Stefan Monnier
2007-04-20 14:07                       ` Jay Belanger
2007-04-22  1:31                         ` Miles Bader
2007-04-22 10:19                           ` Christian Schlauer
2007-04-22 10:23                         ` Christian Schlauer
2007-04-22 19:47                           ` Jay Belanger
2007-04-23 10:46                           ` Jason Rumney
2007-04-23 13:03                             ` Kim F. Storm
2007-04-23 15:54                               ` Jay Belanger
2007-04-25 19:56                                 ` Christian Schlauer
2007-04-25 20:54                                   ` Jay Belanger
2007-04-26  3:35                                     ` Stefan Monnier
2007-04-26  4:06                                       ` Jay Belanger
2007-04-26 14:11                                         ` Stefan Monnier
2007-04-26 21:07                                           ` Christian Schlauer
2007-04-26 15:07                                         ` Davis Herring
2007-04-26 16:01                                           ` Stefan Monnier
2007-04-26 18:32                                             ` Luc Teirlinck
2007-04-26 21:29                                               ` Christian Schlauer
2007-04-26 23:17                                                 ` Luc Teirlinck
2007-04-26 21:07                                     ` Christian Schlauer
2007-04-27  1:27                                       ` Jay Belanger [this message]
2007-04-26 17:47                                   ` Davis Herring
2007-06-20 15:23                         ` Jay Belanger
2007-06-20 16:02                           ` Kim F. Storm
2007-06-20 17:13                             ` Jay Belanger
2007-06-20 17:29                             ` Luc Teirlinck
2007-06-20 17:54                               ` Jay Belanger
2007-06-20 19:14                                 ` Kim F. Storm
2007-06-20 19:28                                 ` Luc Teirlinck
2007-06-20 20:18                                   ` Jay Belanger
2007-04-17 18:54         ` Jay Belanger
2007-04-18 21:55           ` Christian Schlauer
2007-04-19  2:58             ` Daniel Brockman
2007-04-22 10:27               ` Christian Schlauer
2007-04-26 16:00                 ` Daniel Brockman
2007-04-19 15:16           ` Drew Adams
2007-04-19 17:05             ` David Kastrup
2007-04-19 17:18               ` Drew Adams
2007-04-19 17:33                 ` David Kastrup
2007-04-16 15:38     ` Richard Stallman
2007-04-17 12:47 ` Randal L. Schwartz
2007-04-18 21:29   ` Christian Schlauer

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=877iry4ne7.fsf@gmail.com \
    --to=jay.p.belanger@gmail.com \
    --cc=emacs-devel@gnu.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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).