!9IQChSjwSHXPPWTa:lix.systems

Lix

1104 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms294 Servers

Load older messages


SenderMessageTime
25 Oct 2025
@saiko:knifepoint.netKatalin πŸ”ͺ
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@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@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
@emilazy:matrix.orgemily mostly it's the main thing I can imagine wanting <| for 13:57:31
@emilazy:matrix.orgemily though not sure how I feel about stdenv.mkDerivation <| finalAttrs: …, that seems comparably noisy to the parens again :) 13:58:05
@emilazy:matrix.orgemily

the parens only really annoy me a bunch when they make nixfmt do something I hate, like

foo (
  a: b:
  …
)
13:58:33
@emilazy:matrix.orgemilyavoiding rightward drift of entire file bodies can require some unpleasant contortions13:59:02
@emilazy:matrix.orgemilyI 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:matrix.orgllakalai still don't use a formatter for my config because i can't stand any of them15:25:10
@llakala:matrix.orgllakalanixfmt is addicted to indentation15:25:16
@llakala:matrix.orgllakalai generally think nixfmt is good at what it was designed for (being a nixpkgs formatter)15:26:18
@llakala:matrix.orgllakala

but little things, like this:

{ lib, pkgs, config, ... }:

becoming this:

{
  lib,
  pkgs,
  config,
  ...
}:
15:29:00
@llakala:matrix.orgllakala

and this:

let
  # let content
in {

becoming this:

let
  # let content
in
{
15:30:21
@llakala:matrix.orgllakalaare the kind of things i can't stand15:30:35
@llakala:matrix.orgllakalamy biggest issue was fixed recently, which i'm thankful for15:31:04
@llakala:matrix.orgllakala(strings with comments for injections don't get indented anymore15:31:19
@llakala:matrix.orgllakala* (strings with comments for injections don't get indented anymore)15:31:24
@aftix:matrix.orgaftixI use alejandra15:31:24
@llakala:matrix.orgllakalai can't deal with alejandra not putting spaces around list elements15:31:56
@aftix:matrix.orgaftixwdym? like between the first/last element and the brackets?15:33:30
@llakala:matrix.orgllakala

before:

{
  x = [ 1 ];
}

after:

{
  x = [1];
}

15:34:38
@saiko:knifepoint.netKatalin πŸ”ͺthat’s how lists are formatted pretty much in every other language though, I prefer that style. however I don’t like it not putting spaces inside {} haha15:48:45
@piegames:flausch.socialpiegamesyou can't reasonably have that in Nix, unfortunately18:04:18
@saiko:knifepoint.netKatalin πŸ”ͺ oh? why not? 18:05:54
@saiko:knifepoint.netKatalin πŸ”ͺ part of the parser design that makes this not work? apparently the parser is pretty cursed 18:06:54
@piegames:flausch.socialpiegameshttps://github.com/NixOS/rfcs/pull/148#issuecomment-321817736418:08:03
@piegames:flausch.socialpiegamesI think that can't work because functions don't have a dedicated start token, but not sure18:10:30
@saiko:knifepoint.netKatalin πŸ”ͺ riiiight. 18:15:26
@piegames:flausch.socialpiegames I'm a bit wary of that, because in function chains you can do h . g . f a equivalently as h $ g $ f a, which doesn't matter too much in Haskell, but in Nix the former would lead to much worse error messages in case of type errors 18:15:29
@saiko:knifepoint.netKatalin πŸ”ͺ that sucks :( 18:15:32

Show newer messages


Back to Room ListRoom Version: 10