From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kei Kebreau Subject: Re: question regarding substitute* and #t Date: Wed, 24 Jan 2018 16:09:40 -0500 Message-ID: <87zi53q7zf.fsf@posteo.net> References: <20180124010802.18874.3012@vcs0.savannah.gnu.org> <20180124010803.590AF2068F@vcs0.savannah.gnu.org> <874lnbzck5.fsf_-_@netris.org> <87372v8ndd.fsf_-_@igalia.com> <87h8rbtmhl.fsf@netris.org> <87y3kn706z.fsf@igalia.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48659) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeSJZ-00073q-Im for guix-devel@gnu.org; Wed, 24 Jan 2018 16:10:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeSJW-0004n6-BL for guix-devel@gnu.org; Wed, 24 Jan 2018 16:10:37 -0500 Received: from mout01.posteo.de ([185.67.36.65]:58731) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eeSJW-0004lr-0e for guix-devel@gnu.org; Wed, 24 Jan 2018 16:10:34 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3DC9620EDF for ; Wed, 24 Jan 2018 22:10:31 +0100 (CET) In-Reply-To: <87y3kn706z.fsf@igalia.com> (Andy Wingo's message of "Wed, 24 Jan 2018 16:20:36 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Andy Wingo Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Andy Wingo writes: > On Wed 24 Jan 2018 14:28, Mark H Weaver writes: > >> Andy Wingo writes: >> >>> On Wed 24 Jan 2018 13:06, Mark H Weaver writes: >>> >>>> + ;; Install to the right directory >>>> + (substitute* '("Makefile" >>>> + "Qsci/Makefile") >>>> + (("\\$\\(INSTALL_ROOT\\)/gnu/store/[^/]+") >>>> + (assoc-ref outputs "out"))) >>>> + #t))))) >>> >>> I guess once we switch over all instances of "system" and "system*" to >>> use invoke, does that mean we will also be able to remove these >>> vestigial "#t" returns? >> >> After we switch to using 'invoke' everywhere, or more precisely, after >> we arrange to never return #false from any phase or snippet, then there >> should be one more step before removing the vestigial #true returns: we >> should change the code that calls phases or snippets to ignore the >> value(s) returned by those procedures. When that is done, then the #t's >> will truly be vestigial. Does that make sense? > > Sure, makes sense. Thanks for thinking it through with me :) > > Andy Thanks to you both for this thread! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEg7ZwOtzKO2lLzi2m5qXuPBlGeg0FAlpo9hUACgkQ5qXuPBlG eg3yGg/7BdyVnVOG5OWNhDntW5iJtNsNtKoPMQEQ1z4OWzU1U/OB6R2MQIDyB40N wO8nuoENURtMuu1DwjQGXV/rO7Yt0Ylu0kv2ZivLHCV4gB5H8xeg1rSbsF3XtM8E HGKJkF6ZPYDQZ64rrqVoloL9TMxAwOvalBJOU2IsOqVT29hMtZTe6y5mciqvC3JK tSQs6wnPaoxDqLmuo+UQcdDZh3j3Omh/oU/HRYjd2ynVhziPWtLSgHflsztNC+AV zCdf3PiyBikyRuL7V9El9qD2K72hQucKoKTGViDdvzo5pSczHDBUdYv6Iut+VsBr m9V8MG2I+LHhfNYMJyEPeDAEEro8xDuoXfjVVhcvABD3290PdHhPd4E+KooXMYHM sy9tDc9wCSRtJoP5qaqPSper9VzZ6hkv2OmkUmwMNxwPEziNgDn/SKPT5wO89DuV FkR682zik5y4HiZdYvjXjb/Ygd6gJp5xg+Fgm2DPqgjn+6AbvTgseIdcAkLjiY1c G43Cn9XL26snKH0057KmKFC37je2LcgQfvZKxyw66O2Ccdj2WV9D0QNqDUKhKUuo Ay0EDXAtSILiZVHNiKkGWr1hvsnpwtTRY+RgoVQ/+GEEfI9XrtSrOHcHWr2LodIT 5e73nAHNk7ucxgfSYn6r7Aj4LVxkdzRC2nGseo9Yl0/GlNlgbvs= =Xi8z -----END PGP SIGNATURE----- --=-=-=--