r/ProgrammingLanguages • • Sep 29 '26

FUN: Making Curried Functions Work in the Presence of Free Variables

https://blog.tinyinterpreters.dev/posts/fun-currying-free-variables/

We pick up where we left off with FUN to “fix” curried functions so they work the way we expected. We end up rediscovering closures and learning about its history in relation to SECD, LISP, and Scheme.

20 Upvotes

5 comments sorted by

2

u/Inconstant_Moo 🧿 Pipefish Sep 30 '26

Nicely done. But if there's a reason why you start talking about "procedures" rather than "functions" when you discuss Scheme, you should explain what it is.

1

u/dwaynecrooks Sep 30 '26

I went back and forth on that but in the end I decided to just use Scheme's language and not explain it. I'd reconsider it again. Thanks!

1

u/dwaynecrooks Oct 16 '26

I added a short sentence to explain my use of "procedures" when I discuss Scheme. See here.

4

u/number_1_steve Sep 29 '26

Thanks for sharing. I read several of your posts and you did a nice job. I like how the progression is laid out and the writing is very clear.

4

u/AustinVelonaut Admiran Sep 29 '26

Also, the progression is nice: it pedagogically shows the initial steps and the problems that eventually occur, then proceeds to show a solution. I think this is important for learning, rather than presenting a full-blown solution.