Kodi Arfer
Kodi Arfer
How does this proposal compare to @tuturto's `hy.contrib.sequences`?
Seems reasonable.
(defmacro ⦻ [&rest x] `(tuple (~@x))) (print (⦻ map inc [1 2 3]))
That seems like a feature. Wouldn't you rather see the same sequence of characters everywhere rather than one in Emacs and something different elsewhere?
Generally, Hy macros are expanded outside-in, not inside-out. This allows a macro to do whatever it likes with symbols, whether they happen to be macro names in the surrounding scope...
> a macro that makes everything inside its scope expand inside out rather than outside in. My intuition is that it would be very difficult to make this work correctly...
> Is there a way in Hy to access all defined macros in the current scope as a set? No, macro introspection in its full generality is not implemented. >>...
> but this requires defining all the inner macros in terms of the `->` expansion Right, probably better to define `on` as `(.workplane (~@place) it)` instead. >> No, macro introspection...
Anyway, let's narrow this issue to a single feature request so we can decide what to do with it. You've brought up a few things. What would you like to...
I think the second is more likely to happen, and Hyrule's the place for that, so I'll move this issue over.