Google Groups Home
Help | Sign in
Message from discussion Ray tracer in Stalin
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Förster vom Silberwald  
View profile
 More options 20 Aug 2005, 09:07
Newsgroups: comp.lang.scheme
From: "Förster vom Silberwald" <chain_l...@hotmail.com>
Date: 20 Aug 2005 01:07:18 -0700
Local: Sat 20 Aug 2005 09:07
Subject: Re: Ray tracer in Stalin

Marco Antoniotti wrote:
> But the following looks very much like Common Lisp
> (use-package "UNIFY")
> (defun map2 (fun list-1 list-2)
>     (match-case (list list-1 list-2)
>        ((() ()) ())
>        (((?h1 . ?t1) (?h2 . ?t2))
>         (cons (funcall fun h1 h2) (map2 fun t1 t2)))
>        ((_ _) (error "Invalid list arguments to map2: ~S ~S." list-1
> list-2)))

That is very interesting. Thanks for the pointer. Didn't know that
Common Lisp has some inherent potential.

Would be interesting to hear whether Bigloo pinched from Common Lisp
(or the package thereof) or whether the "UNIFY"-package and Bigloo its
pattern-matching implementations derive from the same source in the
literature.

I must honestly say, that I do not feel the urge very often for using
pattern-matching in Scheme. However, I find the Bigloo
patttern-matching facilty cool (okay I must honestly say: for the very
first time I find Common Lisp also cool).

Beauty is in the eye of the beholder.

Schneewittchen
PS: Sorry I didn't know that it will also appear on comp.lang.lisp (I
writing from com.lang.scheme, though).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google