From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IKpEAHu0VF/pFQAA0tVLHw (envelope-from ) for ; Sun, 06 Sep 2020 10:05:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id gMGpN3q0VF9gBQAAbx9fmQ (envelope-from ) for ; Sun, 06 Sep 2020 10:05:46 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B8DC494062D for ; Sun, 6 Sep 2020 10:05:46 +0000 (UTC) Received: from localhost ([::1]:49784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kErYP-0008QH-OD for larch@yhetil.org; Sun, 06 Sep 2020 06:05:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kErYH-0008Pr-2H for guix-devel@gnu.org; Sun, 06 Sep 2020 06:05:37 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:37673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kErYE-0008Bg-Rw for guix-devel@gnu.org; Sun, 06 Sep 2020 06:05:36 -0400 X-Originating-IP: 90.92.160.122 Received: from mimimi (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 96EF640006; Sun, 6 Sep 2020 10:05:28 +0000 (UTC) From: Pierre Neidhardt To: Arun Isaac Subject: Re: File search progress: database review and question on triggers In-Reply-To: <87tuwbs1cr.fsf@systemreboot.net> References: <87sgcuh8rb.fsf@ambrevar.xyz> <87y2ml429i.fsf@elephly.net> <87364tgja3.fsf@ambrevar.xyz> <87y2mlf4jw.fsf@ambrevar.xyz> <87pn7x3pyw.fsf@elephly.net> <87r1sbel4f.fsf@ambrevar.xyz> <87eeobh01d.fsf@systemreboot.net> <87d03uevdq.fsf@ambrevar.xyz> <875z9mhh3s.fsf@systemreboot.net> <87tux6d54k.fsf@ambrevar.xyz> <87zh6yfuin.fsf@systemreboot.net> <87r1sad0co.fsf@ambrevar.xyz> <87o8neczen.fsf@ambrevar.xyz> <871rk73dqw.fsf@systemreboot.net> <87blj0sayk.fsf@ambrevar.xyz> <871rjws4bn.fsf@ambrevar.xyz> <87v9gtcq06.fsf@systemreboot.net> <87ft7wzmsj.fsf@ambrevar.xyz> <87tuwbs1cr.fsf@systemreboot.net> Date: Sun, 06 Sep 2020 12:05:26 +0200 Message-ID: <878sdni5jt.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.194; envelope-from=mail@ambrevar.xyz; helo=relay2-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/06 06:05:29 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_PDS_OTHER_BAD_TLD=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.61 X-TUID: 2J/LZotPigAR --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Arun Isaac writes: > The function signature of search-file-package, > > --8<---------------cut here---------------start------------->8--- > (define (search-file-package pattern . more-patterns) ...) > --8<---------------cut here---------------end--------------->8--- > > can be rewritten as > > --8<---------------cut here---------------start------------->8--- > (define (search-file-package . patterns) ...) > --8<---------------cut here---------------end--------------->8--- > > No need to cons pattern onto more-patterns in the function body. There is a subtle different: in the latter, (search-file-package) is allowed and won't trigger a compile time error, while the former does. This "foo . more-foo" paradigm is a way to say "1 or more arguments", instead of "0 or more". Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl9UtGYACgkQm9z0l6S7 zH+snwf+PeM8RKAUfbpCEWMCzXl8rO6xCiCMGENp4+kq6S/r7eGd6WwaDN0IGZFg JZT1NL3QsvgoCdmRBbtY9QRToKWGGGwI+qecpxO8Tqo+lnN2GGFN7eM8GMJwc/Xl kvyJ4Gcfl/U9NMc9mSQ8pV/X4zkpQLOajuZz2XzTvpa1AqZqNAhAGChS+6yGpmI7 80dwZe8Ew5YIZnFzKWPwmQkJECRMhl9FPOVfLre9XLHIG5rK/Wp/9NFnVDrUa9mP sQostXCm9C5YQ9AdtfcCwq78AMoaFNQ5qY4ZxwDR2E0B+Lt7XTw0QM657z/6cCjv RaDEWAZ6DuIR6qWydemJmj7AN6/dmA== =NLGB -----END PGP SIGNATURE----- --=-=-=--