[Pitch #2] Function builders

You may have ended up reading outdated documents @Anachron.

This is the "pitch thread", while the feature now known as "result builders" has already been accepted (after revisions): SE-0289 (review #2): Result Builders - #141 by compnerd so refer to that thread what the status quo is.

What you are mentioning with buildDeclaration sounds to me exactly like the feature I mentioned early on when working on some internal DSLs, and it's right now in the "future directions" section:

The full motivation post is here: Function builders and "including" let declarations in built result