compile: Simplify expressions.
authorRicardo Wurmus <rekado@elephly.net>
Tue, 4 Jun 2019 10:28:42 +0000 (12:28 +0200)
committerRicardo Wurmus <rekado@elephly.net>
Tue, 4 Jun 2019 10:28:42 +0000 (12:28 +0200)
commitbb01ca8a5d1dd78b1a17c9ebf3d914fe3ef2dc7a
tree875f2c6f073bf75494375920d55caaa062992921
parentb8cd9073f7d555d47802220a7286be1ad29a258b
compile: Simplify expressions.

* modules/language/python/compile.scm (with-exit): Use "unless" and
"zero?".
(use): Use "unless" instead of single-armed "(if (not ...) ...)".
(set-doc): Same.
(setwrap): Use "match-lambda".
(gentable): Use "when".
(export-all): Flip "if".
modules/language/python/compile.scm