Re:Anonymous Recursive Functions in Racket
by shakna on Sunday September 07, 2025 @05:38AM
(#45156755)
Probably worth noting that there's already an SRFI for this. [0] And that macro will work on any Scheme implementing the standard since about '98.
[0] https://srfi.schemers.org/srfi-31/srfi-31.html
[ Parent
| on HN ]
Re:Anonymous Recursive Functions in Racket
by skrishnamurthi on Sunday September 07, 2025 @10:49AM
(#45158655)
1. This isn't the same. `rec` names the function. This does not name the function. The point is to illustrate how the name-capture works.
2. The README literally says "Don't Use This Macro!" and references `rec` to use instead:
https://github.com/shriram/anonymous-recursive-function?tab=...