Re: [csswg-drafts] [mediaqueries][css-conditional] else (#112)

Since @frivoal mentioned Lisp in https://github.com/w3c/csswg-drafts/issues/112#issuecomment-221823414 , as a developer who has written a lot of Lisp, I would like to mention that `if` and `when` are obviously different for many Lisp developers and the difference may cause some misunderstandings.

For example, in Common Lisp, [if](http://www.lispworks.com/documentation/lw50/CLHS/Body/s_if.htm) chooses between the *then-form* and the *else-form* based on the value of the *test-form*, while [when](http://www.lispworks.com/documentation/lw50/CLHS/Body/m_when_.htm) is a variant of `if` where there are no *else-form*, and possibly several *then-forms*. (Other dialects like [Racket](https://docs.racket-lang.org/reference/when_unless.html) and [Clojure](https://clojure.org/guides/learn/flow#_when) are the same.)

-- 
GitHub Notification of comment by xfq
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/112#issuecomment-922232718 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 18 September 2021 07:29:17 UTC