1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-29 03:27:44 +00:00

docs: link discussions [skip ci]

This commit is contained in:
Kevin Amado 2022-07-12 13:19:27 -06:00
parent d4c137986c
commit e33ab6fc18

View file

@ -8,6 +8,9 @@ for regularity and ease of modification.
## Function
> Discussions:
> [1](https://github.com/kamadorueda/alejandra/issues/95)
### With Destructured Arguments
✅ Good:
@ -103,7 +106,7 @@ stdenv.mkDerivation # ...
```
- Documenting the first argument creates an inconsistency
between the way argument start:
between the way arguments start:
```nix
{
@ -119,6 +122,10 @@ stdenv.mkDerivation # ...
- This is not consistent with _Let-In_, and _Map_,
where the separator goes after the element
instead of at the beginning.
- It ruins "folding by indentation" modes
on Vim, Neovim, VSCode, and other major code editors,
because the data-structure has the same indentation
as the opening bracket.
❌ Bad: