helix

https://github.com/Lokeh/helix
2020-10-19T13:51:20.070500Z

anyone using a macro to omit ^:native ?

ordnungswidrig 2020-10-20T07:23:44.076200Z

“omit” or “emit”? :thinking_face:

danielneal 2020-10-19T14:19:53.071500Z

I don't think that's possible, because the metadata special character is processed at read time, before macro expansion. Think you'd need to do (with-meta ... {:native true})

2020-10-19T14:32:48.071900Z

#?(:clj (defmacro $n [type & args] (let [type (if (instance? clojure.lang.IObj type) (with-meta type {:native true}) type)] (helix/$ type @args))))`

danielneal 2020-10-19T14:38:32.072200Z

does that work?

danielneal 2020-10-19T14:39:01.072700Z

I do remember trying to do this at one point, I remember it being fiddly

2020-10-19T14:42:44.074300Z

I've coded today. It's woking as far I can see. I'm asking to know your thougths on this.

2020-10-19T14:43:37.074400Z

dominicm 2020-10-19T15:01:41.076100Z

@geraldodev one minor thing about your macro, you should assoc that metadata on I think, rather than setting it.

👍 1