3 ms·
Short version: put :warn-on-reflection in your leiningen file, And then add type hints (google them) to reduce the warnings to zero. There's no reason the aver
by moomin 10y ago
Short version: put :warn-on-reflection in your leiningen file, And then add type hints (google them) to reduce the warnings to zero.
There's no reason the average Clojure project ever need be using reflection for dispatch.
- raspasov 10y agoCorrect, a lot of the average application-level code you see in the wild does not have to worry about this. If we're talking about things like load-balancers or databases or endpoints/functions that will be hit 1000s of times per second - then it's a diff. conversation.