Paul Rubin <no.email@nospam.invalid> writes:
tfb <tfb@work.it.out> writes:
It should be possible to write functions in an existing language
which map constructs expressing that new (or borrowed) idea into
the existing language. Those functions have a name: macros.
Meh, if the old language can express the new idea at all, then the
new idea isn't that big of a change. Like try implementing Scheme
continuations as macros in CL.
Doug Hoyte does it in Let Over Lambda. But even if we have here a
case where things don't work out so well, one case won't break the
efficacy of all other cases.
I implemented continuations without macros, because I came up with a homoiconic language that didn?t need macros.
Lawrence D?Oliveiro <ldo@nz.invalid> wrote:
I implemented continuations without macros, because I came up with a
homoiconic language that didn?t need macros.
Nobody claims you need macros to have continuations: the question is, if
you have a language without continuations that does have macros, can you
add continuations? The answer depends on what you mean by 'add': since macros are functions between languages, you can obviously use them to implement a language with continuations, but is that an addition to the substrate language or a new language? Is Coalton an addition to CL or is
it a new language?
This is an old question about languages, with a famous answer: a shprakh iz
a dyalekt mit an armey un flot. That's not the whole answer, of course.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 498678:05:35 |
| Calls: | 212 |
| Calls today: | 3 |
| Files: | 912 |
| D/L today: |
31 files (22,593K bytes) |
| Messages: | 69,856 |