gilch

Results 87 issues of gilch

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...

feature

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...

feature

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] ... `(=...

feature

One of the nice things about Clojure is the persistent immutable data structures. These have been implemented in Python via the [Pyrsistent](https://github.com/tobgu/pyrsistent) library (and perhaps others). It might be nice...

feature

I'm proposing ``` (deftag , [form] `(tuple ~form)) ``` Usage, ``` => #,(range 6) tuple(range(6)) (0, 1, 2, 3, 4, 5) ``` Python3 uses lazy iterators a lot more than...

feature

I'm thinking aloud here and looking for feedback. This is a gap in Hy that's bothered me for a while, since I saw https://stackoverflow.com/questions/28949486/is-there-a-way-in-the-hy-language-to-use-doto-on-self The advantage `assoc` has over `setv`...

feature

We're running into occasional annoying problems because the ubiquitous Python iterators are mutable. Clojure doesn't have this problem because it uses the immutable seq abstraction instead. A seq can still...

feature

See hylang/hy#1454, an inadequate attempt to clean this up. This probably needs a full rewrite. An anaphoric macro might work better than the current broken symbol macro approach. Something like...

bug

What's the rationale for making `False` truthy in `lif`? Because that's just bizarre. I know that `nil` in its various incarnations is the one true false in Common Lisp. But...

complaint / disgust

http://www.quickanddirtytips.com/education/grammar/affect-versus-effect