caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
To: Michal Moskal <michal.moskal@gmail.com>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Request for complete pattern matching
Date: Wed, 23 Nov 2005 16:26:40 +0100	[thread overview]
Message-ID: <43848A30.80704@univ-savoie.fr> (raw)
In-Reply-To: <b323bb980511230206u4a570071t8ad69ee47315e7d0@mail.gmail.com>

Michal Moskal a écrit :
> On 11/22/05, Christophe Raffalli <christophe.raffalli@univ-savoie.fr> wrote:
> 
>>It may be not clear what I mean by matching a function (looks impossible
>>;-). I mean something like
>>
>>pattern <= expr expr expr       is a pattern
>>
>>and a function f is matched by
>>
>>p <= e1 ... eN      iff     f e1 ... eN is matched by p
>>
>>(I do not care about the final syntax ...)
> 
> 
> Something like http://homepages.inf.ed.ac.uk/wadler/papers/view/view.ps

No this is not the same ...

I just want to be able inside one single pattern to give arguments to a 
variable of the pattern (which shoud have a function type) and match the 
result.

However, you can maybe (I am not sure at all) implement views as a 
camlp4 extension of ocaml if you have this feature.


> or http://nemerle.org/Extensible_matching ?
> 
> --
>    Michal Moskal,
>    http://nemerle.org/~malekith/
> 

-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature. The public key is
stored on www.keyserver.net
---------------------------------------------


  reply	other threads:[~2005-11-23 15:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 22:43 Christophe Raffalli
2005-11-23  5:54 ` [Caml-list] " Luc Maranget
2005-11-23 14:37   ` Christophe Raffalli
2005-11-23 10:06 ` Michal Moskal
2005-11-23 15:26   ` Christophe Raffalli [this message]
     [not found] ` <43842069.3070700@yahoo.fr>
2005-11-23 14:47   ` Christophe Raffalli
2005-11-23 18:31     ` Luc Maranget
2005-11-23 20:56       ` Martin Jambon
2005-11-23 21:30         ` skaller
2005-11-23 22:25           ` Martin Jambon
2005-11-24  9:29         ` Luc Maranget
2005-11-25 23:01           ` Martin Jambon
2005-11-23 20:56       ` Christophe Raffalli
2005-11-24  9:41         ` Luc Maranget

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

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

  git send-email \
    --in-reply-to=43848A30.80704@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=michal.moskal@gmail.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 NNTP newsgroup(s).