Re: eval use ?
- From: Pascal Costanza <pc@xxxxxxxxx>
- Date: Tue, 28 Feb 2006 16:04:20 +0100
Majorinc wrote:
How do you think "code=data" can be possible without EVAL? Macros fall short here, because code=data means that code can be processed during runtime, just like data is usually processed during runtime.
code=data doesn't imply code=data at runtime. code=data at runtime doesn't imply the use of eval.
Macros take advantage of the code=data nature at compile-time (or better, macroexpansion time).
Closures are another form of code=data, in the sense that closure can be passed around as first-class values.
eval has issues that are solved by macros and closures. Your focus on eval as the only valid expression of the code=data idea is far too narrow.
Pascal
--
My website: http://p-cos.net
Closer to MOP & ContextL:
http://common-lisp.net/project/closer/
.
- References:
- eval use ?
- From: newbie
- Re: eval use ?
- From: Majorinc , Kazimir
- Re: eval use ?
- From: M Jared Finder
- Re: eval use ?
- From: Majorinc , Kazimir
- Re: eval use ?
- From: Ivan Boldyrev
- Re: eval use ?
- From: Majorinc , Kazimir
- eval use ?
- Prev by Date: Re: eval use ?
- Next by Date: [CfP] Workshop on Generic Programming 2006
- Previous by thread: Re: eval use ?
- Next by thread: Re: eval use ?
- Index(es):
Relevant Pages
|