From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Accessor functions vs nth (WAS: Decoded time accessors) Date: Wed, 10 Jul 2019 11:02:32 +0100 Message-ID: References: <20190707214326.GD4053@ACM> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004a52fc058d50c731" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34644"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Alan Mackenzie , Lars Ingebrigtsen , Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 10 12:22:02 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hl9je-0008St-7t for ged-emacs-devel@m.gmane.org; Wed, 10 Jul 2019 12:22:02 +0200 Original-Received: from localhost ([::1]:59636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hl9Sx-0008NS-Dj for ged-emacs-devel@m.gmane.org; Wed, 10 Jul 2019 06:04:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33643) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hl9R0-0008NL-PA for emacs-devel@gnu.org; Wed, 10 Jul 2019 06:02:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hl9Qz-0004UN-HF for emacs-devel@gnu.org; Wed, 10 Jul 2019 06:02:46 -0400 Original-Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]:43172) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hl9Qz-0004Tf-1X for emacs-devel@gnu.org; Wed, 10 Jul 2019 06:02:45 -0400 Original-Received: by mail-io1-xd2b.google.com with SMTP id k20so3378536ios.10 for ; Wed, 10 Jul 2019 03:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EY90ZgfuRsEOtkgJXO6+U+lcAN/VVAKAHFp/0Q49s5U=; b=aW2dNoGKdTUA2wJOHZaLAVwQgjgTub+qKsMD+nOwrH/npMVajDO1xeu43pcto+67zT pPSGERNoIaJZuS/nzA6g9VgywP03H+vAs/WFNHyvRUseW8OvlQSEgMpUsWMArZb7Th8t ANhUzRVAWoraLwd/h4hala5KS38eNHLN/4PkTpPxKy5fEQMcea80Eemd6T6urCAM5Bun ZwhLIb08FYyGJo5t/dtUKWOdl2CxXDiWhsaB3g7ChmsMWmUnzw56qw8Da4Qkr0SfwUgG Q+kff8nJ5MPsl/s8Uo5hpSQD9ducVhQAhDBFnGUzKvt41hNN0SYJ7SXNdh88pkvlH3f5 01kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EY90ZgfuRsEOtkgJXO6+U+lcAN/VVAKAHFp/0Q49s5U=; b=HuVK9jx0aDol9TmHh5N7bz+OqDnibvKf5/spUqnKPosFZ64mOA2pAoQJ65KZcpPx+l ICCdx+3BdOX+Yc1NOAkjHGkIvIpbxvqsNf4VkHD4pJi14D7KpTj3rLoFqMR5wblC70JE /geGKwo0JUed97BbxJ0Fl5ccec0Jn/DcSWOuQveHXGuLSMM2SpAsvphaarC2hn1yzqGd wLXmuSrpDSArIf0n2iT4RCvLJ2Ya8EApq643kqg4IRvetJXgCF6ctJxyCgT+XA8++Qqt 5R53Mpc6/X0iwIf8lWsnJOYrBruBjIQ0viZzWpVXZ/6i+cXatWHeGQKs4u7iZGnDfTND uzVQ== X-Gm-Message-State: APjAAAVoFFcMR2EaB5aNs1xGOK0t0r921uHI1jL2B0FxK5oS6Z1XVB/6 kRG2eEMnzjoB/i48MYn/nU3A2T52OMNpV+dKJGA= X-Google-Smtp-Source: APXvYqwMuXfWzJ/BKxi+LxfKBi8/1WOzrGjkhyrLQUIhPLE9rBmgLlWDPVdp5wbI3cjdlVtjSiZ6GSaOsOs9pfp8rJ4= X-Received: by 2002:a6b:dd18:: with SMTP id f24mr10157224ioc.97.1562752963988; Wed, 10 Jul 2019 03:02:43 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2b X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238494 Archived-At: --0000000000004a52fc058d50c731 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 9, 2019 at 1:12 AM Noam Postavsky wrote: > > This sort of complication needs to be kept in check. But thanks, Lars, > > for actually having the consideration to ask here first. > > Huh. I'm constantly annoyed at the (nth 8 state) thing, because I can > never remember which number is which. In fact, I had meant to propose > some accessors in Bug#32504. It didn't actually occur to me that this > might be at all controversial, the only reason that bug sat for a > while is that I got busy with other things. > > https://debbugs.gnu.org/32504#51 > > I don't see any reason for it to be controversial, either. If some peopl= e like the terseness (and what I believe is the unneeded obfuscation) of (nth 8 x) they can still use it. I'd rather have (in-string-or-comment-p s). The syntax-ppss situation is particularly painful because the doc is actually in parse-partial-sexp. So you're using syntax-ppss but have to remember to find the doc in that other function (unless you like clicking a link each time) Jo=C3=A3o --0000000000004a52fc058d50c731 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Jul 9, 2019 at 1:12 AM Noam Postavsky <npostavs@gmail.com> wrote:
> This sort of complication needs to be kept in check.=C2=A0 But thanks,= Lars,
> for actually having the consideration to ask here first.

Huh. I'm constantly annoyed at the (nth 8 state) thing, because I can never remember which number is which. In fact, I had meant to propose
some accessors in Bug#32504. It didn't actually occur to me that this might be at all controversial, the only reason that bug sat for a
while is that I got busy with other things.

https://debbugs.gnu.org/32504#51

I don't see any reason for it to be controversi= al, either.=C2=A0 If some people
like the terseness (and what I b= elieve is the unneeded obfuscation) of (nth 8 x)
they can st= ill use it. I'd rather have (in-string-or-comment-p s).=C2=A0 The synta= x-ppss
situation is particularly painful because the doc is actua= lly in
parse-partial-sexp. So you're using syntax-ppss b= ut have to remember to
find the doc in that other function (unles= s you like clicking a link each time)

Jo=C3=A3o
--0000000000004a52fc058d50c731--