Merge release Beta 1 into stable #21

Merged
Felisp merged 35 commits from dev into stable 2024-08-13 17:48:09 +02:00
Showing only changes of commit 9bb30b9863 - Show all commits

View file

@ -27,6 +27,17 @@
res#
~else)))
;; Todo: Test this properly and if working, replace when-else with this
;; Todo: find a way to download clojure documentation for offline use
(defmacro when-else2
"Evaluates [tst], if it's truthy value returns that value.
If it's not, execute everything in [else] and return last expr."
[tst & else]
`(let [res# ~tst]
(if res#
res#
(do ~@else))))
(defmacro ret=
"compares two values using [=]. If the result is true
returns the value, else the result of [=].