Fork me on GitHub
#squint
<
2022-09-29
>
mauricio.szabo18:09:51

Hi - does squint already supports macros, even on an experimental/buggy/weird way?

borkdude18:09:26

@mauricio.szabo yes it does, if you use (:require-macros [foo.bar]) it looks for macros in ./foo/bar.clj and src/foo/bar.clj

borkdude18:09:33

it's a hacky way indeed, but a start

mauricio.szabo18:09:12

Ok. Basically, I have a code that it is currently pure ClojureScript, but I want to see if it compiles with Squint. The only issue is that it uses Promesa, so I'm thinking if it's possible to rewrite the p/let as a macro 😄

mauricio.szabo18:09:31

I'll check if it's possible, and ping you later with the results (could be an interesting use-case!)

borkdude18:09:18

I think that should be possible