[anaphora-devel] when-bind if-bind (and friends?)
Attila Lendvai
attila.lendvai at gmail.com
Sun Oct 15 10:25:50 UTC 2006
>
> Sorry to be so confused, but what is the function signature for if-bind?
>
you can have two kind of if-bind, the one in arnesi and the one that covers
most of the use-cases is a single var version:
(if-bind var expression
then
else)
but one can have an:
(if-let ((var1 expr1)
(var2 expr2))
then
else)
which should expand to nested let's with an if's to keep the semantics of
'and.
but imho this if-let idiom is not needed that often to justify the extra
syntax for the single var case and the extra semantic complexity
(non-obviousness).
--
- attila
"- The truth is that I've been too considerate, and so became
unintentionally cruel...
- I understand.
- No, you don't understand! We don't speak the same language!"
(Ingmar Bergman - Smultronstället)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/anaphora-devel/attachments/20061015/24b3a5d1/attachment.html>
More information about the anaphora-devel
mailing list