unofficial mirror of emacs-tangents@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Emanuel Berg <incal@dataswamp.org>,
	"emacs-tangents@gnu.org" <emacs-tangents@gnu.org>
Subject: RE: [External] : Re: Shrinking the C core
Date: Fri, 15 Sep 2023 15:35:19 +0000	[thread overview]
Message-ID: <SJ0PR10MB54885A1FF133DEF4F489638DF3F6A@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87fs3fesir.fsf@dataswamp.org>

(Again, moving to emacs-tangents@gnu.org.)

> Agreed, it is better with keyword arguments than 
> a long list of nils because of optional arguments.
> 
> But it is better yet to not have the functions take so many
> arguments in the first place, but to split them up and have
> the function name be more specific what is going to happen.

Not necessarily.  It depends - on context, how
often each combination is used, and even user
preferences.

With 10 different functions, instead of one,
to represent a "family" of functions, users
can wonder "Which should I use?".  The problem
introduced then is finding good function names
and specifying, in the doc of each (or in some
"family" doc) just what the differences are,
and how they can (or can't) be used together.

IOW, it can make sense to use a "family" name
and keywords, with a single explanation of the
keywords, together.  A single explanation lets
you address what combinations make sense etc.

Happily, if keywords are at least available
(possible) in the language, you have a choice
of which approach to use.  Nothing _requires_
you to define a function with keyword args,
instead of defining separate functions (up to
N-factorial of them!).

  parent reply	other threads:[~2023-09-15 15:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AM9PR09MB4977AE8A2555D914A8CB96ED96E1A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found] ` <87ledwx7sh.fsf@yahoo.com>
     [not found]   ` <DB9PR09MB4986737ABB230BFCEB1AB9B596E0A@DB9PR09MB4986.eurprd09.prod.outlook.com>
     [not found]     ` <877cpfybhf.fsf@yahoo.com>
     [not found]       ` <AM9PR09MB4977C010362EBF83BCF3491C96E0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]         ` <873503y66i.fsf@yahoo.com>
     [not found]           ` <AM9PR09MB49779854134CDC2E4FB2AD2996E0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]             ` <E1qbX63-0003Ty-Rn@fencepost.gnu.org>
     [not found]               ` <E1qdgsR-0000j8-BN@fencepost.gnu.org>
     [not found]                 ` <AM9PR09MB497757F8D921063E3D60D40C96EFA@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]                   ` <ZPhih7q2ml8v6EfP@ACM>
     [not found]                     ` <87bkeeoqf3.fsf@dataswamp.org>
     [not found]                       ` <ZPl0+E1jYEJ2noRt@tuxteam.de>
     [not found]                         ` <87wmx2mooq.fsf@dataswamp.org>
2023-09-07  7:52                           ` Shrinking the C core tomas
     [not found]                     ` <AM9PR09MB497758A94F012B506480CCE996EDA@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]                       ` <SJ0PR10MB548849E1E781201B1E2A9AC3F3EDA@SJ0PR10MB5488.namprd10.prod.outlook.com>
     [not found]                         ` <E1qfUyS-0006Wx-9e@fencepost.gnu.org>
     [not found]                           ` <ZP+B/SleQ0CTPWd2@thyrsus.com>
     [not found]                             ` <m2cyyoj9av.fsf@Pro.fritz.box>
2023-09-12 12:07                               ` [External] : " Eli Zaretskii
2023-09-12 12:16                                 ` Po Lu
2023-09-12 19:58                                 ` Arthur Miller
2023-09-13 14:39                                   ` Eli Zaretskii
2023-09-14 11:53                                     ` Arthur Miller
2023-09-14 13:36                                       ` Po Lu
     [not found]                           ` <CALDnm50-__n48jSXe7WGXuT8O1YFm7QmqVzjgh-VUg5d_3ofpQ@mail.gmail.com>
     [not found]                             ` <87fs3fesir.fsf@dataswamp.org>
2023-09-15 15:35                               ` Drew Adams [this message]
     [not found] <AM9PR09MB4977F8809CAACC854107D60596F0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
2023-09-13 14:46 ` Drew Adams
2023-09-14 12:09   ` Arthur Miller
2023-09-15 16:17     ` Emanuel Berg
2023-09-15 20:04       ` Drew Adams
2023-09-15 20:21         ` Emanuel Berg
2023-09-16 20:55           ` Drew Adams
2023-09-17 10:08             ` Emanuel Berg
2023-09-17 14:34               ` Yuri Khan
2023-09-17 23:14                 ` Emanuel Berg
2023-09-17 17:16               ` Drew Adams
2023-09-17 23:48                 ` Emanuel Berg

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=SJ0PR10MB54885A1FF133DEF4F489638DF3F6A@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-tangents@gnu.org \
    --cc=incal@dataswamp.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.
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).