mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
normalize formal order on ExprLambda::show
we already normalize attr order to lexicographic, doing the same for formals makes sense. doubly so because the order of formals would otherwise depend on the context of the expression, which is not quite as useful as one might expect.
This commit is contained in:
parent
d384ecd553
commit
4147ecfb1c
3 changed files with 12 additions and 2 deletions
7
doc/manual/rl-next/formal-order.md
Normal file
7
doc/manual/rl-next/formal-order.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
synopsis: consistent order of lambda formals in printed expressions
|
||||
prs: 9874
|
||||
---
|
||||
|
||||
Always print lambda formals in lexicographic order rather than the internal, creation-time based symbol order.
|
||||
This makes printed formals independent of the context they appear in.
|
Loading…
Add table
Add a link
Reference in a new issue