hyrule
hyrule copied to clipboard
A utility library for Hy
Its second parameter is for an internal Hy class, `HyASTCompiler`. It should have an interface more like `hy.eval`. We could also just delete it, since it came into being primarily...
I have just finished implementing and writing tests for `some->` and `some->>` threading macros for personal use. Is there interest in adding these macros to `hy.core.macros`, before I PR? I've...
REPL session ``` => (setv x 10) x = 10 None ------------------------------ => x.real x.real ------------------------------ 10 => (. x real) x.real ------------------------------ 10 => (-> x (. real)) real(x)...
Currently, building the sphinx docs kicks up a bunch of warnings. Things I've noticed: Hy example code containing the ellipsis symbol `…` instead of three dots `...` fails to parse...
Lisp originally used dynamic variables, instead of the lexical variables used in Python. They're still the norm in Emacs Lisp, and useful enough sometimes that they're still available optionally in...
I just stumble across [ADT in python](https://stackoverflow.com/questions/16258553/how-can-i-define-algebraic-data-types-in-python), and it translate into [this](https://github.com/hylang/hy/discussions/2392#discussioncomment-4772155) in hy. Which is kinda ugly. Here I present a macro, so it's looks a bit better: macro...
For example, running the following code in hy: ```hy (raise (Exception "some exception")) (print "skip the above line") ``` Skipping the exception is not possible in hy, currently. However, in...
My first attempt at implementing `partition` looked like this: ```Hy (defn partition [n coll] (->> coll (iter) (,) (* n) (apply zip))) ``` This doesn't work anymore because we removed...
From a discussion in hylang/hy#1346 ```Hy (defmacro defshadowed [name args &rest body] `(do (defmacro ~name ~args ~@body) (defn ~name ~args (~name ~@args)))) ``` ```Python => (defshadowed zerop [x] ... `(=...