From: Daniel Khodabakhsh <d.khodabakhsh@gmail.com>
To: 74900@debbugs.gnu.org
Subject: [bug#74900]
Date: Fri, 27 Dec 2024 23:58:50 +0000 [thread overview]
Message-ID: <CAADuFnK=BCCtqfrcjx1-tDo=HziX+LtXdLz6zy6Ejy0yv30Qog@mail.gmail.com> (raw)
In-Reply-To: <CAADuFnKcD0wxAZfg7cBPV1eWG9NW3Tm=nOHtd6Rcd9wfSqpsuA@mail.gmail.com>
The rationale of this patch are the following reasons:
1. Since (json) is a dependency of guix, there's no need to roll out
own (guix build json) which does the same thing.
2. (guix build json)'s write-json escapes forward slashes in strings
for some reason ("/" become "\/")
3. (guix build json)'s read-json produces an awkward to use structure
similar to an association list but with '@' to indicate an object, and
arrays are just lists. (json)'s json->scm produces a regular guile
association list for objects and uses #(...) for lists. Overall this
difference leads to easier to read and maintain code as can be seen in
the patch. No longer need to match '@' for example, we can use the
regular association list procedures directly.
next prev parent reply other threads:[~2024-12-28 0:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-15 20:30 [bug#74900] [PATCH] Replace (guix build json) with (json) in node build system Daniel Khodabakhsh
2024-12-15 21:41 ` [bug#74900] Daniel Khodabakhsh
2024-12-26 13:30 ` [bug#74900] Daniel Khodabakhsh
2024-12-27 23:58 ` Daniel Khodabakhsh [this message]
2024-12-28 19:00 ` [bug#74900] Daniel Khodabakhsh
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='CAADuFnK=BCCtqfrcjx1-tDo=HziX+LtXdLz6zy6Ejy0yv30Qog@mail.gmail.com' \
--to=d.khodabakhsh@gmail.com \
--cc=74900@debbugs.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).