unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: taylanbayirli@gmail.com (Taylan Ulrich Bayırlı/Kammer)
To: Andreas Enge <andreas@enge.fr>
Cc: guix-devel@gnu.org
Subject: Re: Some macros to make package definitions prettier
Date: Wed, 25 Feb 2015 20:46:05 +0100	[thread overview]
Message-ID: <87vbip6agy.fsf@taylan.uni.cx> (raw)
In-Reply-To: <20150225181217.GB6653@debian.math.u-bordeaux1.fr> (Andreas Enge's message of "Wed, 25 Feb 2015 19:12:17 +0100")

Andreas Enge <andreas@enge.fr> writes:

> Actually, I do not like the imperative, non-functional style of these
> syntax rules. For me, they rather obscure what is happening.

For those not very familiar with Scheme, the sequential notation will be
significantly more readable.  For those familiar with Scheme, it should
be trivial to learn.  Wouldn't you say it's worth it in the long run?

And just to chip in my personal opinion, I find the deeply nested and
reverse notation to be fairly ugly. :-) The notation I propose builds on
the idea of a pipeline, which is still purely functional, and I suspect
it's more intuitive to most humans even if they know FP well.

> The general drawback of such syntax rules is that newcomers do not see
> all the inner cogwheels of the system. So on one hand, one gains that
> contributing packages becomes easier; on the other hand, understanding
> what is actually happening becomes harder, and also learning scheme
> through guix becomes more difficult as we move to our own domain
> specific language.

Indeed, I agree.  However, I think these are simple enough macros, such
that if the manual just shows with an example what their use expands to,
it should be enough for those interested to quickly grasp it.

Taylan

  reply	other threads:[~2015-02-25 19:46 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25 16:42 Some macros to make package definitions prettier Taylan Ulrich Bayırlı/Kammer
2015-02-25 17:04 ` Thompson, David
2015-02-25 17:06   ` Thompson, David
2015-02-25 19:27     ` Taylan Ulrich Bayırlı/Kammer
2015-02-25 20:54   ` Taylan Ulrich Bayırlı/Kammer
2015-02-25 18:12 ` Andreas Enge
2015-02-25 19:46   ` Taylan Ulrich Bayırlı/Kammer [this message]
2015-02-25 20:24   ` Thompson, David
2015-02-25 23:32 ` Ludovic Courtès
2015-02-26 11:07   ` Taylan Ulrich Bayırlı/Kammer
2015-02-26 21:39     ` Ludovic Courtès
2015-03-03 16:49       ` Taylan Ulrich Bayırlı/Kammer
2015-03-03 20:44         ` Ludovic Courtès
2015-03-03 22:47           ` Taylan Ulrich Bayırlı/Kammer
2015-03-04  9:52             ` Ludovic Courtès
2015-02-26 21:41     ` Ludovic Courtès

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=87vbip6agy.fsf@taylan.uni.cx \
    --to=taylanbayirli@gmail.com \
    --cc=andreas@enge.fr \
    --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).