≈ the.bay.news

What is the purpose of the function argument/parameter set?

NixOS Discourse
What is the purpose of the function argument/parameter set?
I’ve been cleaning my configuration a bit and finally figured out how the function argument/parameter set works. You know the one at the top, like { lib, pkgs, ...}: In cleaning it up, I’ve been going by the rule of thumb that if it’s after an = I include it there. Then I test it and if I get the anonymous lambda error something is being pulled in from outside the file so I include the ... as well. But… if it is so easy to simply do { ... } then why do we go through all the trouble of declarin...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.