all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Brockman <daniel@brockman.se>
To: emacs-devel@gnu.org
Subject: Re: constant `e'
Date: Mon, 12 Feb 2007 20:57:09 +0100	[thread overview]
Message-ID: <8764a76tey.fsf@wigwam.brockman.se> (raw)
In-Reply-To: 45311.128.165.123.18.1171307030.squirrel@webmail.lanl.gov

"Stuart D. Herring" <herring@lanl.gov> writes:

>> Hm!  That's interesting.
>>
>> The concept of `non-nil' is very basic to me, so I do not
>> have to filter anything out of `(not (null ...))', because
>> it is already phrased the way I think about it.
>
> I have addressed this point more extensively in another mail, but let me
> add in response to this particular sentence that the concept of `non-nil'
> is so very basic to me that I do not need to see `(not (null ...))' to
> know that it is applied by such forms as `cond'.

fine

i really don't need to see most punctuation or
capitalization to understand english sentences

the thing is that i _want_ to see it because i think it
makes the prose look better

it's like

i know there should be a question mark after this sentence,
so why not add one

it won't be distacting because not only am i used to seing
question marks --- i add missing ones mentally when i read

>> I had no idea some people read it like that.
>>
>> Do you feel similarily talked down to when you see C code
>> like the following?
>>
>>    for (node = list->first; node != NULL; node = node->next)
>>      process (node);
>
> I don't feel talked-down-to as much as I feel inconvenienced by (if you'll
> pardon the exaggeration) the ineffective prose of a novice.

I compared `!= NULL' and `(not (null ...))' to punctuation.
I guess, in a way, punctuation makes prose "ineffective".

> The use of NULL when even the compiler merely sees 0 in
> its stead serves no purpose in terms of type-safety,

I never claimed it did.

> and after resolving that mentally I also waste more time
> noting that `!=0' does not affect the conditional value of
> an integer or pointer.

That's ridiculous.  If you have to spend many brain cycles
figuring out what `node != NULL' means, I would hesitate to
say that you are fluent in common idiomatic C.

It's sort of comparable to stopping every time you see the
word `but' and noting that, in fact, it just means `and'.

> Although it would be clumsy here, I would even recommend, since the loop
> is so simple, that a trivial loop over argv be written as
>
> for(ptr=argv;*ptr;process(*ptr++));

Well, I guess we'll just have to agree to disagree,
because I think that's very hard to read.

I would write it as follows:

   for (current = argv; *current != NULL; ++current)
     process (*current);

Maybe we just speak different dialects of C or something.

I speak "verbose" and you speak "cryptic". :-)

-- 
Daniel Brockman <daniel@brockman.se>

  reply	other threads:[~2007-02-12 19:57 UTC|newest]

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09  7:37 constant `e' Drew Adams
2007-02-09  9:32 ` Juanma Barranquero
2007-02-09 11:24   ` Kim F. Storm
2007-02-09 15:08   ` Stefan Monnier
2007-02-09 15:19     ` Juanma Barranquero
2007-02-09 15:34       ` Stefan Monnier
2007-02-10 17:40       ` Richard Stallman
2007-02-09 18:33     ` Jay Belanger
2007-02-09 18:51       ` Stefan Monnier
2007-02-09 14:23 ` Richard Stallman
2007-02-09 14:32   ` Leo
2007-02-09 23:11     ` Kim F. Storm
2007-02-10  0:16       ` Drew Adams
2007-02-12 18:11         ` Stuart D. Herring
2007-02-10 17:39     ` Richard Stallman
2007-02-09 14:37   ` David Kastrup
2007-02-10 17:39     ` Richard Stallman
2007-02-09 15:33   ` Drew Adams
2007-02-09 16:30     ` Eli Zaretskii
2007-02-09 16:50       ` Drew Adams
2007-02-10  9:49         ` Eli Zaretskii
2007-02-09 23:07   ` Dieter Wilhelm
2007-02-10 17:39     ` Richard Stallman
2007-02-10 18:41     ` Slawomir Nowaczyk
2007-02-10 21:12       ` Dieter Wilhelm
2007-02-10  9:29   ` Kevin Rodgers
2007-02-10 19:13     ` Stefan Monnier
2007-02-10 19:22       ` Lennart Borgman (gmail)
2007-02-10 19:38         ` Stefan Monnier
2007-02-10 20:32           ` Lennart Borgman (gmail)
2007-02-12  5:04             ` Kevin Rodgers
2007-02-12 16:06               ` Drew Adams
2007-02-10  6:27 ` Daniel Brockman
2007-02-10  8:59   ` David Kastrup
2007-02-10 11:35     ` Daniel Brockman
2007-02-10 12:01       ` David Kastrup
2007-02-10 12:42         ` Daniel Brockman
2007-02-10 12:43       ` Alan Mackenzie
2007-02-10 14:33         ` Daniel Brockman
2007-02-10 18:05           ` Alan Mackenzie
2007-02-10 18:29             ` Daniel Brockman
2007-02-12 19:03           ` Stuart D. Herring
2007-02-12 19:57             ` Daniel Brockman [this message]
2007-02-10 17:38         ` David Kastrup
2007-02-10 18:15           ` Daniel Brockman
2007-02-12 18:51           ` Stuart D. Herring
2007-02-10 19:05       ` Stefan Monnier
2007-02-10 20:48         ` Daniel Brockman
2007-02-10 21:06           ` Stefan Monnier
2007-02-11  9:42           ` David Kastrup
2007-02-11 17:53             ` Daniel Brockman
2007-02-10 21:34       ` Edward O'Connor
2007-02-12 19:17       ` Stuart D. Herring
2007-02-12 20:37         ` Daniel Brockman
2007-02-12 20:40           ` David Kastrup
2007-02-10 17:41   ` Richard Stallman
2007-02-10  9:02 ` Alan Mackenzie
2007-02-10  9:51   ` Jason Rumney
2007-02-12 18:16     ` Stuart D. Herring
2007-02-10 15:13   ` Juanma Barranquero
2007-02-10 19:12   ` Stefan Monnier
2007-02-11  0:43   ` David Hansen
2007-02-11  1:13     ` Jay Belanger
2007-02-11  1:24   ` Drew Adams
2007-02-10 18:53 ` Chong Yidong
  -- strict thread matches above, loose matches on Subject: below --
2007-02-13  2:34 djh
2007-02-13  8:23 ` Werner LEMBERG

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=8764a76tey.fsf@wigwam.brockman.se \
    --to=daniel@brockman.se \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.