ring-clojure / ring-json

Ring middleware for handling JSON
313 stars 47 forks source link

Private functions vs public in the package #48

Closed Heliosmaster closed 7 years ago

Heliosmaster commented 8 years ago

There are some functions that might be useful, in general (e.g. https://github.com/ring-clojure/ring-json/blob/master/src/ring/middleware/json.clj#L7), but can't be used because they are private.

What is the rationale behind this? Why not make them public?

weavejester commented 8 years ago

Private functions can be altered without affecting the public API. Every function we make public is an extra function we can't easily change without affecting backward compatibility.