Reader conditionals throws when they have nil expressions

Description

Reader conditional that has nil as an expression fails.

e.g. (read-string {:read-cond :allow} "#?(:default nil)")

The fact that nil values are valid expressions are documented at both official documentation and design page.

Patch: clj-1785-v2.patch

Screened by: Alex Miller

Environment

None

Activity

Show:
Jozef Wagner
July 22, 2015, 7:53 AM

Added patch with tests

Jozef Wagner
July 22, 2015, 8:06 AM

v2 patch that uses static final sentinel value

Nicola Mometto
July 22, 2015, 11:23 PM

reports a similar bug with data readers.

Completed

Assignee

Jozef Wagner

Reporter

Jozef Wagner

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Priority

Critical