From: Maxime Devos <maximedevos@telenet.be>
To: Canan Talayhan <canan.t.talayhan@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [Outreachy] - Guix Data Service - Set a more informative page title
Date: Tue, 13 Apr 2021 19:51:32 +0200 [thread overview]
Message-ID: <79d3d2e5c1386b1e162f1ba8380562720131856d.camel@telenet.be> (raw)
In-Reply-To: <CAAosC5+ZPwVZyHXAA3Lj7Sqc94SivNWfSk+uAj9Xy3qtqmU6rg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1573 bytes --]
On Tue, 2021-04-13 at 18:56 +0300, Canan Talayhan wrote:
> [...]
> After sending the patch I've turned the patch like below.
> (title ,(if title
> `,(string-append title " - Guix Data Service")
> '("Guix Data Service")))
A little more simplification is possible:
`,(string-append title ...) --> (string-append ...)
The code `,A after macro-expansion simply becomes A, for every A.
To test, you can run
,expand `,(string-append title " something")
in a Guile REPL.
Also,
'("Guix Data Service")))
seems incorrect. The end result if title is #f would be
(title ("Guix Data Service")),
while I believe you wanted
(title "Guix Data Service").
Correct code would be
> (title ,(if title
> `,(string-append title " - Guix Data Service")
> "Guix Data Service"))
or alternatively
> (title ,(if title
> `,(string-append title " - Guix Data Service")
> '"Guix Data Service"))
or
> (title ,(if title
> `,(string-append title " - Guix Data Service")
> `"Guix Data Service"))
I don't know how familiar you are with quasiquote (`), quote (') and
unquote (,); it may be worthwhile to look this up in the Guile maual
`,(string-append title " - Guix Data Service")
I recommend sending e-mails as plain text. One benefit is that plain
text doesn't mess up code indentation (at least on e-mail clients using
fixed-width fonts for plain text, which seems standard).
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
next prev parent reply other threads:[~2021-04-13 17:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 9:01 [Outreachy] - Guix Data Service - Set a more informative page title Canan Talayhan
2021-04-13 11:57 ` Maxime Devos
2021-04-13 15:56 ` Canan Talayhan
2021-04-13 17:51 ` Maxime Devos [this message]
2021-04-15 12:08 ` Canan Talayhan
2021-04-15 21:52 ` Christopher Baines
2021-04-16 9:58 ` Canan Talayhan
2021-04-16 11:11 ` Christopher Baines
2021-04-18 13:42 ` Canan Talayhan
2021-04-18 17:53 ` Christopher Baines
2021-04-18 20:37 ` Canan Talayhan
2021-04-19 19:16 ` Christopher Baines
2021-04-21 15:43 ` Canan Talayhan
2021-04-22 19:46 ` Christopher Baines
2021-04-23 8:34 ` Canan Talayhan
2021-04-23 12:10 ` Christopher Baines
2021-04-24 11:39 ` Christopher Baines
2021-04-24 15:30 ` Canan Talayhan
2021-04-24 20:21 ` Christopher Baines
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=79d3d2e5c1386b1e162f1ba8380562720131856d.camel@telenet.be \
--to=maximedevos@telenet.be \
--cc=canan.t.talayhan@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).