L Sharp from Common Lisp

1 view
Skip to first unread message

rsb...@gmail.com

unread,
Aug 29, 2006, 3:05:01 PM8/29/06
to LSharp
I'm working through a regular Lisp book using L Sharp. It isn't hard to
adjust, but here are some things to watch out for:

Paren Reduction:
LISP: (cond ((eql x 2) 'A) ((eql x 3) 'B) (t 'C))
LSharp: (cond (eql x 2) 'A (eql x 3) 'B 'C)

Forget #':
LISP: (mapcar #'print '(a b c))
LSharp: (map prl '(a b c))

I think my biggest frustration is when I write a bunch of stuff, then
try to execute it (I use xacc.ide) and get a NullPointerException. I
have better luck when I work one expression at at time, get it working
then move on to the next. I also use this often:

(= atom (fn (x) (not (is LSharp.Cons x))))

..bo...@gmail.com

Reply all
Reply to author
Forward
0 new messages