[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question regarding substitute* and #t
From: |
Mark H Weaver |
Subject: |
Re: question regarding substitute* and #t |
Date: |
Wed, 24 Jan 2018 08:28:06 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hi Andy,
Andy Wingo <address@hidden> writes:
> On Wed 24 Jan 2018 13:06, Mark H Weaver <address@hidden> 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?
Mark
- Simplifications enabled by switching to 'invoke', Mark H Weaver, 2018/01/24
- question regarding substitute* and #t (was: Simplifications enabled by switching to 'invoke'), Andy Wingo, 2018/01/24
- Re: question regarding substitute* and #t,
Mark H Weaver <=
- Re: question regarding substitute* and #t, Andy Wingo, 2018/01/24
- Re: question regarding substitute* and #t, Kei Kebreau, 2018/01/24
- Re: question regarding substitute* and #t, Maxim Cournoyer, 2018/01/25
- Re: question regarding substitute* and #t, Andy Wingo, 2018/01/25
- Re: question regarding substitute* and #t, Maxim Cournoyer, 2018/01/25
- Re: question regarding substitute* and #t, Arun Isaac, 2018/01/25
- Re: question regarding substitute* and #t, Mark H Weaver, 2018/01/25
Re: question regarding substitute* and #t, Hartmut Goebel, 2018/01/24