Matthieu Moy <[EMAIL PROTECTED]> writes:

> Christian Ohler <[EMAIL PROTECTED]> writes:
>> `lexical-let' doesn't have any of these problems.  Also, it ships
>> with Emacs.  I don't see why DVC needs its own idiosyncratic utility
>> macro.
>
> `dvc-capturing-lambda' is really convenient to use, and makes the code
> much more readable. You say which variable you want to take from the
> definition context at the time you use the variable, not around the
> function.

Interesting discussion.

>> We should aim to replace all uses of `dvc-capturing-lambda' by
>> `lexical-let'.
>
> As you have shown, `dvc-capturing-lambda' doesn't manage multiple
> occurences of the same variable correctly, so lexical-let is obviously
> better in this case, but I still don't see a reason to remove the
> other occurences.

In that case, I will fix this bug rather than switching everything to
lexical-let.

-- 
       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: pgpSEX4mWb4xO.pgp
Description: PGP signature

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

Reply via email to