/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Anonymous recursive functions in Racket
(github.com)
88 points
azhenley
| 3 comments |
04 Sep 25 00:39 UTC
|
HN request time: 0.639s
|
source
Show context
CyberDildonics
◴[
06 Sep 25 21:37 UTC
]
No.
45153090
[source]
▶
>>45122069 (OP)
#
I would rather use a loop so I can debug it.
replies(2):
>>45153162
#
>>45154253
#
1.
treyd
◴[
06 Sep 25 21:46 UTC
]
No.
45153162
[source]
▶
>>45153090
#
Tail-recursive functions in Racket are optimized down to essentially for loops.
replies(1):
>>45154267
#
ID:
GO
2.
stirfish
◴[
07 Sep 25 00:44 UTC
]
No.
45154267
[source]
▶
>>45153162 (TP)
#
What's it like to debug them?
replies(1):
>>45160586
#
3.
rgherdt
◴[
07 Sep 25 17:58 UTC
]
No.
45160586
[source]
▶
>>45154267
#
One strategy is by "tracing" a function call:
https://docs.racket-lang.org/trace/
↑