doc macro does not expand special cases properly

Description

The doc macro supports three special cases, mapping & to fn, catch to try, and finally to try. However, the macro does not currently expand these cases - it executes them like a function instead. This is evident if you use the following at a REPL:

Workaround: Call doc with the symbol to which the special case is mapped, fn or try.

Cause: Incorrect quoting when handling special cases in doc macro

Solution: Update special case quoting approach to match the other cases.

Patch: CLJ-1358.patch

Environment

None

Activity

Show:
Chad Taylor
February 18, 2014, 4:41 AM

Adding a patch with code and test.

Completed

Assignee

Unassigned

Reporter

Chad Taylor

Labels

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Priority

Trivial
Configure