cl-format: ~( thows an exception with an empty string

Description

None

Environment

None

Attachments

1

Activity

Show:

Tom Faulhaber March 21, 2011 at 4:51 PM

Answer: cl-format doesn't print nil as "Nil". The () construction is a case control operator. In this case, it capitalizes the each word in the expression: http://www.lispworks.com/documentation/HyperSpec/Body/22_cha.htm.

In general, I've suppressed the obvious "CL-only" stuff like upper case symbols and such and replaced them with the corresponding Clojure conventions.

Stuart Halloway March 20, 2011 at 4:17 PM

Patch works. One question: Why does cl-format print "nil" as "Nil"? Is this a CL-ism? Do we want it?

Tom Faulhaber March 6, 2011 at 6:01 AM

Patch that fixes the issue and adds tests

Tom Faulhaber March 6, 2011 at 1:44 AM

The following block of code throws an index out of range exception:

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Affects versions

Fix versions

Created March 6, 2011 at 1:42 AM
Updated March 1, 2013 at 6:47 PM
Resolved March 1, 2013 at 6:47 PM