unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Hans Aberg <haberg-1@telia.com>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-user@gnu.org
Subject: Re: List functions
Date: Wed, 1 Dec 2010 20:56:02 +0100	[thread overview]
Message-ID: <5C4C6BCD-02B4-47BB-9D38-099DDA1D4508@telia.com> (raw)
In-Reply-To: <m3y689w9sz.fsf@unquote.localdomain>

On 1 Dec 2010, at 20:51, Andy Wingo wrote:

>> () x into (() x)
>
> What is the meaning of this?
>
> Did you mean
>
>   () x into (map (lambda (f) (f x)) '())
>
> ?

I am trying to eliminate the "\" of the Haskell binding syntax \ ... - 
 > f, by making the parser grammar rule for ... the same as evaluation  
rule f ...

Then, as one can define \() x -> f for thunks, also () x becomes  
available for evaluation. So the question is to bother giving it  
meaning. One possibility might be as a constant evaluation to itself  
() x = () for any argument.





  reply	other threads:[~2010-12-01 19:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01 16:28 List functions Hans Aberg
2010-12-01 17:35 ` Joel James Adamson
2010-12-01 17:48   ` Hans Aberg
2010-12-01 19:20     ` Keith Wright
2010-12-01 19:50       ` Hans Aberg
2010-12-01 20:26         ` Hans Aberg
2010-12-01 21:34         ` Keith Wright
2010-12-01 22:19           ` Hans Aberg
2010-12-01 22:43           ` Hans Aberg
2010-12-03 15:06           ` Hans Aberg
2010-12-01 19:51 ` Andy Wingo
2010-12-01 19:56   ` Hans Aberg [this message]
2010-12-02  9:57 ` Marco Maggi
2010-12-02 10:10   ` Marco Maggi
2010-12-02 11:31   ` Hans Aberg
2010-12-02 16:06   ` Hans Aberg
2010-12-03  9:20     ` Hans Åberg

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://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5C4C6BCD-02B4-47BB-9D38-099DDA1D4508@telia.com \
    --to=haberg-1@telia.com \
    --cc=guile-user@gnu.org \
    --cc=wingo@pobox.com \
    /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.
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).