Closed jsulmont closed 1 year ago
Thanks!
Upon reading that patch I wonder whether it would be better to have a *c0-value*
(perhaps with a nicer name?) instead, that could be bound to 'null
or any other value. That would be a bit inconsistent with *use-false*
, but allows for more flexibility.
OTOH, YAGNI might easily apply here, so lets run with it.
This is the 5th variable that influences decoding; if you have some spare time for something like a (defmacro with-standard-msgpack-settings ((&key ...) &body body) ...)
I'd appreciate that!
Thanks Philip for merging this. I'll submit a PR for (defmacro with-standard-msgpack-settings ((&key ...) &body body) ...)
as suggested :-)
As it is,
cl-messagepack
does not distinguish between decodingxc0
and decodingxc2
: they both decode tonil
in Lisp. However there may be cases when this distinction is important (e.g. cl-transit). This PR introduces a top level variable*use-null*
which when notnil
decodesxc0
to'null
.