modular
modular copied to clipboard
Keep bools and reject odd number of args
- A simple assert makes sure that the number of kv's passed to make-args is always even.
- Boolean values, specifically falses, were getting lost due to the use
of a bare
or. By switching to usingdvin theget-ininstead, the code is both simpler and more correct.
Hmm it looks like the number of args doesn't always have to be even? Happy to revert that part.
(make new-webserver config {:port [:http-server :port]})