[TNS-14] Wasted call to str in read-ns-decl Created: 02/Dec/13 Updated: 02/Dec/13 Resolved: 02/Dec/13
|Reporter:||Andy Fingerhut||Assignee:||Stuart Sierra|
The function read-ns-decl (both copies in each of two namespaces) contain the expression:
This is equivalent to (read rdr), plus a wasted call to str whose return value is discarded.
|Comment by Stuart Sierra [ 02/Dec/13 12:07 PM ]|
The call to str was added to force the Clojure reader to throw exceptions immediately when it encounters a syntax error. See
|Comment by Andy Fingerhut [ 02/Dec/13 4:20 PM ]|
Sorry for the noise. I was trying out pre-release version of Eastwood linter on as many contrib libraries as possible, and it found that odd-looking code. It didn't occur to me to look through the commit history to see when it became like it was, and why. Subtle.