lancepantz / clj-yaml

YAML encoding and decoding for Clojure via SnakeYAML
Other
91 stars 52 forks source link

Fixed keywordization. #19

Open startling opened 10 years ago

startling commented 10 years ago

Previously *keywordize* was a dynamic variable, and so e.g. (map decode ...) would use the default *keywordize* (i.e. true) rather than the locally bound one, since map is the calling context. As you can imagine, this caused all kinds of flakiness when you wanted un-keywordized values anywhere but the top level in maps decoded from YAML.

I added a test case and then fixed it.