| 25 Oct 2025 |
@dawnofmidnight:catgirl.cloud | that's the case i was thinking of, (f x: x) + 2 is a perfectly interpretation. i suppose you could say it consumes as much as possible, but that is sort of contrary to the behavior of say, [ f x ] where you don't consume more (though whether this is analogous is debatatable). you can absolutely define it to be that, but i feel like it would break precedent? dunno | 13:56:32 |
Katalin 🔪 | In reply to @kfears:matrix.org They are somewhat ugly, but they are universal, unlike the backpipe which only works on the last argument sure, but often you do specifically end up with lots of long expression as specifically the last parameter | 13:56:43 |
Katalin 🔪 | In reply to @kfears:matrix.org They are somewhat ugly, but they are universal, unlike the backpipe which only works on the last argument * | 13:56:51 |
@dawnofmidnight:catgirl.cloud | ah right, i forgot that this would be unambiguous. blocks are compelling (though i personally don't think it justifies the whole thing) | 13:57:08 |
@dawnofmidnight:catgirl.cloud | * ah right, i forgot that this would be there. blocks are compelling (though i personally don't think it justifies the whole thing) | 13:57:15 |
emily | mostly it's the main thing I can imagine wanting <| for | 13:57:31 |
emily | though not sure how I feel about stdenv.mkDerivation <| finalAttrs: …, that seems comparably noisy to the parens again :) | 13:58:05 |
emily | the parens only really annoy me a bunch when they make nixfmt do something I hate, like
foo (
a: b:
…
)
| 13:58:33 |
emily | avoiding rightward drift of entire file bodies can require some unpleasant contortions | 13:59:02 |
emily | I ruled out several draft ideas for improvements to Nixpkgs package structure just because they would add another layer of indentation to every single package 😅 | 14:00:33 |
llakala | i still don't use a formatter for my config because i can't stand any of them | 15:25:10 |
llakala | nixfmt is addicted to indentation | 15:25:16 |
llakala | i generally think nixfmt is good at what it was designed for (being a nixpkgs formatter) | 15:26:18 |
llakala | but little things, like this:
{ lib, pkgs, config, ... }:
becoming this:
{
lib,
pkgs,
config,
...
}:
| 15:29:00 |
llakala | and this:
let
# let content
in {
becoming this:
let
# let content
in
{
| 15:30:21 |
llakala | are the kind of things i can't stand | 15:30:35 |