Christian Ohler <[EMAIL PROTECTED]> writes:

> It was wrong, but this fact is obvious only in retrospect, and only to
> you, after you've reworked all of `dvc-capturing-lambda's
> internals. Your previous message still claimed the opposite.  To a
> newcomer, it's not obvious what works and what doesn't, here.
>
> When I started working on DVC, I also wasted some time trying to
> figure it out, and what its advantage over `lexical-let' was supposed
> to be, but I fortunately gave up after a while.  Still, I wish we
> could spare others the time.

Then we should fix that by *documenting* the function better, rather
than *replacing* it.

>> It is not meant to be used in a nested fashion;
>
> Odd.  Doesn't every proper Lisp construct nest?

No.  `backquote', for example, is non-trivial to nest, as demonstrated
by the previous version of dvc-capturing-lambda.

>> it does not weave through its body argument
>> in a complicated and time-consuming way,
>
> The processing that `dvc-capturing-lambda' does isn't easy to
> understand, either.  My confusion about whether the non-compilable
> part is really necessary and your commit message from about a week ago
> ("The (funcall (lambda ...)) stuff looks superfluous, but I'll keep it
> in for now") demonstrate this.  The processing is a little bit simpler
> than that of `lexical-let', and it doesn't "weave through its body
> argument", but it certainly still qualifies as complicated.
>
> I don't know about the "time-consuming" part.  I don't think either of
> them significantly affects compilation time.

Well, I *do* know.  lexical-let does more work, hence takes more time.
It may not be a significant amount, and it may not even appear after
compile-time, but the difference is there.  Just looking at the
monstrosity that is `cl-macroexpand-all' (which is used by lexical-let)
turns my stomach.  Compared to that thing, dvc-capturing-lambda is
elegant and simple.

-- 
       Michael Olson -- FSF Associate Member #652     |
 http://mwolson.org/ -- Jabber: mwolson_at_hcoop.net  |  /` |\ | | |
            Sysadmin -- Hobbies: Lisp, GP2X, HCoop    | |_] | \| |_|
Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |

Attachment: pgppdbN2V3w4p.pgp
Description: PGP signature

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to