Maxim Cournoyer <[email protected]> writes: > Hi again, > > Noé Lopez via "Development of GNU Guix and the GNU System distribution." > <[email protected]> writes: > > [...] > >> `substitute-file` >> Substitutes one or multiple files, all regexes must >> match for all files. Takes optional argument to make each regex only >> have to match once. >> >> There is no option to have a regex that never matches. > > I forgot to mention; if we go with a brand new API, we could use a > procedure instead of syntax for substitute-file; it ends up calling to a > procedure anyway, but having it syntax means that it's less flexible > (IIRC, it's bad form to have dynamically computed patterns with > string-append or format for example -- I forgot why that was, perhaps > because of its syntax nature?) > > Was there a reason to have substitute* as syntax rather than as a plain > procedure? >
I don’t know, it was probably more fancy. But I also agree that its overdone and makes the implementation needlessly complicated.
signature.asc
Description: PGP signature
