clojure.core/slurp does not mark its return type as String

Description

Given that slurp always returns a string (or throws), a user might expect that calling a string method on it will not reflect. However, its return type is not hinted, so calling, say, (.getBytes (slurp "foo")) will reflect unless the user hints. If we hint in clojure.core, the user won't have to.

Patch: CLJ-2188-v1.patch

Prescreened by: Alex Miller

Environment

None
Completed

Assignee

Unassigned

Reporter

Michael Blume

Labels

None

Approval

Ok

Patch

Code

Fix versions

Affects versions

Priority

Minor
Configure