zhuangxm/clj-rpc — comment on commit a5497ee2a442f65c58ac64d3c1652cda03550893
File:  line 0
By robertluo:

Indeed, not elegant. I do not think it should be merged into master now, because the ugly code has global effect. For client, I think it is Ok though. However, better introduce a function like (mk-client :json) to return a pair of function or an object implemented 2 functions.
For the server side, using global vars make it impossible to support multiple protocols. I think just introduce function pairs or protocol might be better.

I may do this if you wish.