4 ms·
Point-free programming would be extremely useful if the composition primitive allowed introspection. You would then compose functions that would have run-time h
by wolfgangK 9y ago
Point-free programming would be extremely useful if the composition primitive allowed introspection.
You would then compose functions that would have run-time homoiconicity as you would be able to edit the "ast" embedded in the point-free function.
I use this to modify the parameters of the composite geometric transformations of fractals. This allows me to generate animations for any kind of fractals without having to reimplement the animation code for each fractal :
https://scientific-coder.github.io/Playground/2017-03-20-fractals.html https://scientific-coder.github.io/Playground/2017-03-20-fra...
(cf stepify multi-method).
This would be useful for web servers in Clojure as we could have our cake and eat it too : while currently one has to pick either easy with ring handlers that are simple function compositions and vectors of interceptors for pedestal that can be modified at runtime.