Re:Hy: A dialect of Lisp that's embedded in Python
by mumblemumble on Wednesday May 05, 2021 @11:01AM
(#27050750)
Side comment: Python doesn't have TCO, but Hy does have the loop/recur macros in its contrib library. They give you a version of tail recursion that looks a bit odd at first, but quite nice once you get used to it.
[ Parent
| on HN ]
Re:Hy: A dialect of Lisp that's embedded in Python
by gilch on Thursday May 06, 2021 @02:06PM
(#27067048)
Hy's loop/recur had a serious bug last I checked: https://github.com/hylang/hy/issues/1465
But see the @loop decorator from Drython for how to do this in Python: https://github.com/gilch/drython/blob/eb1773c14060e31e2544f5...