Chapter 7

Functions

You already know what a function is — this chapter is about Ascent’s spelling and its handful of honest surprises. A function is just a value you bind with fix, its body is a block like any other, and its signature is always written out in full. The payoff lands at the end: closures that snapshot the names they use instead of capturing live references, so the classic loop-variable footgun simply can’t happen.