Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
(Such as: https://github.com/rm-hull/infix)
This is a pretty naive case, and the context extension is limited to the scope of the macro, rather than changing the rules of clojure itself. There are other libraries like clojure.tools.macro with macrolet and symbol-macrolet that facilitate this style (although I couldn't get them working with if in particular, I think because of clojures protection of special forms).
I have an example of doing hacky things like this here. And I have an example of a recursive-replace function here.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Clojure conventions for writing complicated mathematical calculations?
- I was getting tired of writing parens for simple math so I made a function for it. Is there a better way to write basic math without as many parentheses in Clojure?
- Tips for learning prefix notation?
- What I Worked On
- How are events actually published to kafka?