* (unless ...) vs (when (not ...)) @ 2021-07-16 22:42 Hongyi Zhao 2021-07-16 23:12 ` Eric Abrahamsen 2021-07-17 17:52 ` Emanuel Berg via Users list for the GNU Emacs text editor 0 siblings, 2 replies; 3+ messages in thread From: Hongyi Zhao @ 2021-07-16 22:42 UTC (permalink / raw) To: help-gnu-emacs Should I use (unless ...) or (when (not ...))? Which one is preferable? Regards -- Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com> Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (unless ...) vs (when (not ...)) 2021-07-16 22:42 (unless ...) vs (when (not ...)) Hongyi Zhao @ 2021-07-16 23:12 ` Eric Abrahamsen 2021-07-17 17:52 ` Emanuel Berg via Users list for the GNU Emacs text editor 1 sibling, 0 replies; 3+ messages in thread From: Eric Abrahamsen @ 2021-07-16 23:12 UTC (permalink / raw) To: Hongyi Zhao; +Cc: help-gnu-emacs Hongyi Zhao <hongyi.zhao@gmail.com> writes: > Should I use (unless ...) or (when (not ...))? Which one is preferable? In terms of compilation, they both turn into `if' statements, so there's no real difference there. Personally I find that, when I'm "reading" the code out loud in my head, one approach will sound more natural than the other, which can make things a little quicker to parse mentally. But it really depends on what the condition is and how it's tested. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: (unless ...) vs (when (not ...)) 2021-07-16 22:42 (unless ...) vs (when (not ...)) Hongyi Zhao 2021-07-16 23:12 ` Eric Abrahamsen @ 2021-07-17 17:52 ` Emanuel Berg via Users list for the GNU Emacs text editor 1 sibling, 0 replies; 3+ messages in thread From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-07-17 17:52 UTC (permalink / raw) To: help-gnu-emacs Hongyi Zhao wrote: > Should I use (unless ...) or (when (not ...))? Which one > is preferable? `unless' -- underground experts united https://dataswamp.org/~incal ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-17 17:52 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-07-16 22:42 (unless ...) vs (when (not ...)) Hongyi Zhao 2021-07-16 23:12 ` Eric Abrahamsen 2021-07-17 17:52 ` Emanuel Berg via Users list for the GNU Emacs text editor
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).