Re: How powerful macros are?
From: Marco Antoniotti (marcoxa_at_cs.nyu.edu)
Date: 03/23/05
- Next message: V.Ch.: "Re: How powerful macros are?"
- Previous message: Sam Steingold: "Re: Screamer ClLisp, Win32"
- In reply to: V.Ch.: "How powerful macros are?"
- Next in thread: V.Ch.: "Re: How powerful macros are?"
- Reply: V.Ch.: "Re: How powerful macros are?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 23 Mar 2005 16:21:16 -0500
V.Ch. wrote:
> Currently my knowledge of macros (and Lisp as a whole) is extremely
> superficial, so forgive me if it's a silly question, but... Can I use
> macros to make
>
> (setf (aref a 12) 13)
>
> look something more like
>
> a[12] = 13?
Yes you can. Look at the INFIX package in the CMU AI.Repository.
However, first it does not mean that you want to do it, second you'd
better ask the question: cai I use other macro systems to make C++ or
Java or Perl
a[12] = 42;
look like
(setf (aref a 12) 42)
?
>
> I've started playing with List just few weeks ago. I think I got used to
> somewhat weired loops, branching, etc; but using arrays, and in
> particular, assigning to arrays, seems clumsy enough to be a show-stopper.
You have a very low tolerance. How are you going to ever learn the
basics of APL? Or INTERCAL?
Cheers
-- Marco
- Next message: V.Ch.: "Re: How powerful macros are?"
- Previous message: Sam Steingold: "Re: Screamer ClLisp, Win32"
- In reply to: V.Ch.: "How powerful macros are?"
- Next in thread: V.Ch.: "Re: How powerful macros are?"
- Reply: V.Ch.: "Re: How powerful macros are?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|