gilch/drython
View on GitHub ↗ ★ 29 Python
metaprogramming for don't-repeat-yourself Python
3 mentions on Hacker News by 1 person: 0 stories, 3 comments · first 2020-02-08 · latest 2021-05-06
20082026
-
…But see the @loop decorator from Drython for how to do this in Python: https://github.com/gilch/drython/blob/eb1773c14060e31e2544f5...
comment by gilch · 2021-05-06 · in Hy: A dialect of Lisp that's embedded in Python -
…`:=` now: https://www.python.org/dev/peps/pep-0572/ Even before that, I had a "let" in Drython: https://github.com/gilch/drython/blob/master/drython/stateme... In Haskell let and lambda have a subtle distinction due to the type system, but…
comment by gilch · 2020-02-08 · in Exploit custom codecs to write inline C in Python -
…demonstrates just how far you can stretch Python's lambdas. Check out its readme for examples: https://github.com/gilch/drython Hissp, my Lisp-on-Python project, uses multiline lambdas to simplify its compilation target to a functional…
comment by gilch · 2020-02-08 · in Exploit custom codecs to write inline C in Python