all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
Subject: Re: No return value in doc string
Date: Sun, 30 Apr 2006 06:55:35 +0900	[thread overview]
Message-ID: <87aca49hd4.fsf@catnip.gol.com> (raw)
In-Reply-To: <mailman.1122.1146330818.9609.help-gnu-emacs@gnu.org> (Dieter Wilhelm's message of "Sat, 29 Apr 2006 12:01:35 +0200")

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:
>> Also if the function makes no effort to return anything useful, it
>> might be better not to document what the return value happens to be.
>
> But has the disadvantage that the uninitiated and insecure (my
> example) may suspect a documentation flaw.

They'll have to learn to deal with that.

It's a fairly general rule in computer programming:  if something is not
mentioned in the documentation (or some more formal interface
description), you cannot make assumptions about it.  [In practice of
course, you _have_ to make _some_ assumptions, but learning which you
can make and which you can't is an important part of learning to program
in a particular environment.]

-Miles
-- 
"Most attacks seem to take place at night, during a rainstorm, uphill,
 where four map sheets join."   -- Anon. British Officer in WW I

  parent reply	other threads:[~2006-04-29 21:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.965.1146057882.9609.help-gnu-emacs@gnu.org>
2006-04-27 20:07 ` No return value in doc string Stefan Monnier
2006-04-29 10:01   ` Dieter Wilhelm
     [not found]   ` <mailman.1122.1146330818.9609.help-gnu-emacs@gnu.org>
2006-04-29 21:55     ` Miles Bader [this message]
2006-04-24  0:27 Dieter Wilhelm
2006-04-26 17:34 ` Eli Zaretskii
2006-04-27  1:16   ` Dieter Wilhelm

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=87aca49hd4.fsf@catnip.gol.com \
    --to=miles@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.