Re: Teaching new tricks to an old dog (C++ -->Ada)
From: Paul Mensonides (leavings_at_comcast.net)
Date: 03/29/05
- Next message: Mr. S: "Re: get system info? (linux/unix)"
- Previous message: Paul Mensonides: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- In reply to: jayessay: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Next in thread: jayessay: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Reply: jayessay: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Mar 2005 02:22:36 -0800
jayessay wrote:
> "Paul Mensonides" <leavings@comcast.net> writes:
>> Lisp macros cannot produce partial syntax either, whereas C/C++
>> macros can (e.g. on macro can create a '{' and another separate
>> invocation can create the closing '}').
>
> Again, that would be the sort of thing you would use reader macros.
> It's worth noting again that Lisp macros (the kind you generally mean
> when unqualified) do not work on text, they work on the syntax trees
> passed to them.
Neither do macros in C or C++. They operate on tokens. In any case, the
difference is meaningless. The only thing that matters is what the semantics
are (such as name binding). Lisp macros are easily inferior to Scheme macros in
that sense.
>> Jerry is correct to say that they do similar things--they parametize
>> code with code.
>
> But that is not really what they do. It is _one_ thing you can _use_
> them to do.
That is exactly what they do. It is irrelevant whether that code is in the form
of a syntax tree or not. The kind of thing that you seem to be referring to is
what Haskell does instead.
>> The main differences is that in Lisp (etc.) their
>
> I think the main differences are the ones I listed.
Obviously.
Regards,
Paul Mensonides
- Next message: Mr. S: "Re: get system info? (linux/unix)"
- Previous message: Paul Mensonides: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- In reply to: jayessay: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Next in thread: jayessay: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Reply: jayessay: "Re: Teaching new tricks to an old dog (C++ -->Ada)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|