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

Attachments

2

Activity

Show:

Nicola Mometto July 22, 2015 at 1:23 PM

reports a similar bug with data readers.

Jozef Wagner July 21, 2015 at 10:06 PM

v2 patch that uses static final sentinel value

Jozef Wagner July 21, 2015 at 9:53 PM

Added patch with tests

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Affects versions

Fix versions

Created July 21, 2015 at 9:38 PM
Updated July 31, 2015 at 9:39 PM
Resolved July 31, 2015 at 9:39 PM