Dusty Pomerleau on Nostr: Wow, IDK how I feel about #nix `with` statements. The way they sorta stack up in the ...
Wow, IDK how I feel about #nix `with` statements. The way they sorta stack up in the environment, and then you can just use any of them without any explicit clarification which one you're using. And then what? Nix just tries all the possible variations, and tells you if there's a collision? Am I missing an easy way to tell which `with` is in use by any given line of code?
Published at
2024-08-27 06:38:53Event JSON
{
"id": "93f8b376dd3b583f9bdf8cc280970692565ccca8443906e5389a4e6d746340b9",
"pubkey": "5bdfe5c3188a24f76efd37648930d8ada3e458961d03b2e0d62596d4f76e4778",
"created_at": 1724740733,
"kind": 1,
"tags": [
[
"t",
"nix"
],
[
"proxy",
"https://fosstodon.org/users/dpom/statuses/113032608738899446",
"activitypub"
]
],
"content": "Wow, IDK how I feel about #nix `with` statements. The way they sorta stack up in the environment, and then you can just use any of them without any explicit clarification which one you're using. And then what? Nix just tries all the possible variations, and tells you if there's a collision? Am I missing an easy way to tell which `with` is in use by any given line of code?\n\nhttps://cdn.fosstodon.org/media_attachments/files/113/032/608/597/277/355/original/588111961774a3d7.png",
"sig": "27b64a2b14df7f2ecb1be078dbfc31e4d5a9913c1aed5d4c2981a025c590aa2f014f7e07143d89a10617c012127dafff74fa682694be0ce4cf5ea12e478dc57b"
}