Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@mdaniels5757
Copy link
Member

@mdaniels5757 mdaniels5757 commented Dec 19, 2025

Motivation

Even though it's older, it's still part of the language, and I think it should be documented accordingly.

Context

I learned of this from reading Eelco Dolstra's PhD thesis (pp. 69, 73-74). I chose a slightly different example in order to display that attributes other than body can refer to other attributes recursively too.

Unresolved issues

  • Is this syntax deprecated? If so, I should mark it as such.
  • If it's not deprecated, should it be?
  • Should the documentation note how this syntax is equivalent to rec { body = ...; [ ident = expr; ]... }.body?

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

I learned of this from reading Eelco Dolstra's PhD thesis (pp. 69, 73-74).

Co-authored-by: Robert Hensing <[email protected]>
@Mic92 Mic92 force-pushed the document-old-let-expression-syntax branch from 8822323 to c6ac52d Compare December 21, 2025 17:28
@Mic92 Mic92 enabled auto-merge December 21, 2025 17:28
@Mic92 Mic92 added this pull request to the merge queue Dec 21, 2025
Merged via the queue into NixOS:master with commit d85e5df Dec 21, 2025
16 checks passed
@mdaniels5757 mdaniels5757 deleted the document-old-let-expression-syntax branch December 22, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants