help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why not "stripes" in: (let ((zebra 'stripes) ... ; strings vs symbol


From: Emanuel Berg
Subject: Re: why not "stripes" in: (let ((zebra 'stripes) ... ; strings vs symbols?
Date: Wed, 01 Jan 2014 18:29:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Evans Winner <ego111@gmail.com> writes:

>> The only thing I can think of that I saw in other
>> languages and not in Lisp is *pattern matching*:
>> branching straight off the functions' heads, like it
>> is possible to do (and a very common practice) in
>> languages like Erlang, SML, and Haskell. But I
>> suppose it could be implemented as a Lisp macro if
>> you really cared for it.
>
> For what it's worth, you might find Shen interesting
>
>     shenlanguage.org
>
> From the "Shen in 15 Minutes" page:
>
> (define factorial 0 -> 1 X -> (* X (factorial (- X
> 1))))

Yes, that's exactly what I meant, and that looks like a
mix of Lisp and Erlang.

-- 
underground experts united:
http://user.it.uu.se/~embe8573


reply via email to

[Prev in Thread] Current Thread [Next in Thread]