jkk / formative

Web forms for Clojure and ClojureScript - rendering, parsing, and validating
208 stars 18 forks source link

Protocolize the renderer #58

Open iku000888 opened 7 years ago

iku000888 commented 7 years ago

Currently the rendering is dispatched as a multimethod, however if more built-in renderers get added to this project it will add significant cost in terms of code size because they cannot be dead code eliminated. https://groups.google.com/forum/#!topic/clojurescript/3rL8vKzyJQA

So future built in rendereres will have to be based on protocols to allow unused renderers to be removed.