|
From: | Hartmut Goebel |
Subject: | Re: string-append plus package |
Date: | Mon, 19 Dec 2016 12:05:04 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
Am 19.12.2016 um 10:47 schrieb Ludovic
Courtès:
The result of ‘file-append’ is not a string, but ‘string-append’ expects two strings, hence the error. ‘file-append’ returns a “string-valued gexp”. This is to say that, in a staging context, it will produce a string. For example: (scheme-file "foo" #~(foo bar #$(file-append nginx "/foo/bar"))) leads to a file “foo” containing: (foo bar "/gnu/store/…-nginx-1.2.3/foo/bar") Thanks for the explanation (which to be frank would take me some time to understand). Please reread you answer from the point of view of an administrator or somebody else who is not a Scheme programmer. Somebody who just wants to get some system up an running. He would answer like this:
Whatever you write above may be correct and may be understandable for every Scheme programmer. But this is discouraging for everybody who does not want to become a Scheme expert for administering his/her systems. I already wasted about an hour just to try to get this path! This is crap! -- Regards Hartmut Goebel | Hartmut Goebel | address@hidden | | www.crazy-compilers.com | compilers which you thought are impossible | |
[Prev in Thread] | Current Thread | [Next in Thread] |