[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] fix/group-by-write-out 89abffe 11/14: Make it explicit that not a
From: |
Phillip Lord |
Subject: |
[elpa] fix/group-by-write-out 89abffe 11/14: Make it explicit that not all VALS are evalled in -if-let* |
Date: |
Tue, 04 Aug 2015 19:45:09 +0000 |
branch: fix/group-by-write-out
commit 89abffed98771ddb0a8aa199d845aabbccd36a47
Author: Clément Pit--Claudel <address@hidden>
Commit: Matus Goljer <address@hidden>
Make it explicit that not all VALS are evalled in -if-let*
I was not initially sure whether something like
(-when-let* ((a (subr-that-could-return-nil))
(b (blow-up-if-arg-is-nil a)))
(message "All safe"))
would work properly. It does, so edit the docs (and that of `if-let*') to
make it clear.
Initially mentioned in #142.
---
dash.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dash.el b/dash.el
index 342d4a9..772a629 100644
--- a/dash.el
+++ b/dash.el
@@ -1674,7 +1674,9 @@ See `-let' for the description of destructuring
mechanism."
VARS and do THEN, otherwise do ELSE. VARS-VALS should be a list
of (VAR VAL) pairs.
-Note: binding is done according to `-let*'."
+Note: binding is done according to `-let*'. VALS are evaluated
+sequentially, and evaluation stops after the first nil VAL is
+encountered."
(declare (debug ((&rest (sexp form)) form body))
(indent 2))
(->> vars-vals
@@ -1707,7 +1709,9 @@ otherwise do ELSE."
VARS and execute body. VARS-VALS should be a list of (VAR VAL)
pairs.
-Note: binding is done according to `-let*'."
+Note: binding is done according to `-let*'. VALS are evaluated
+sequentially, and evaluation stops after the first nil VAL is
+encountered."
(declare (debug ((&rest (sexp form)) body))
(indent 1))
`(-if-let* ,vars-vals (progn ,@body)))
- [elpa] branch fix/group-by-write-out created (now 36310ed), Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 7aec562 04/14: Merge pull request #140 from mijoharas/master, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 45bd985 01/14: Reimplementation of --group-by., Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out aa13c07 03/14: fixed typo in docs (first where it should be last, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 63d2db9 05/14: make ->>'s second arg optional, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 1677338 02/14: Merge pull request #138 from phillord/fix/group-by-write-out, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 89abffe 11/14: Make it explicit that not all VALS are evalled in -if-let*,
Phillip Lord <=
- [elpa] fix/group-by-write-out 70caa37 06/14: Merge pull request #144 from cammsaul/thread_last_make_second_arg_optional, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out eadb265 13/14: Swap examples to better show how -some-> works, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 36310ed 14/14: Added .elpaignore., Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out c3cf98d 12/14: Add `-some->`, `-some->>`, and `-some-->` macros., Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out e468937 09/14: Formatting, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out b88cfb7 10/14: Add dash prefix to epsilon variable., Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 1c2f43d 08/14: Add "See also" for the reduce family, Phillip Lord, 2015/08/04
- [elpa] fix/group-by-write-out 2aeeacb 07/14: Release 2.11.0, Phillip Lord, 2015/08/04